// // sub_1006655C4 from 0x1006655c4 to 0x100665914 (848 bytes) // // 1 xrefs: // > sub_100643E44 @ 0x100644390 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:11:00 +0000 // void *__fastcall sub_1006655C4(__int64 a1, _BYTE *a2, int a3, _QWORD *a4) { __int64 v8; // x8 int v9; // w0 int v10; // w24 void *v11; // x20 void *v13; // x0 __int64 v14; // x0 __int64 v15; // x8 int v16; // w25 __int64 v17; // x27 __int64 v18; // x28 __int64 v19; // x8 __int64 v20; // x8 __int64 v21; // x4 __int64 v22; // x8 __int64 v23; // x8 __int64 v24; // x2 v8 = *(_QWORD *)(a1 + 128); if ( v8 ) *(_DWORD *)(v8 + 1188) = 0; v9 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)(a1 + 8) + 152LL))(0, 0); v10 = v9; if ( !v9 || a3 % v9 ) { sub_100706FB0(20, 161, 151, "ssl_lib.c", 1512); return nullptr; } if ( a4 && (v11 = (void *)*a4) != nullptr ) { sub_100704AFC(*a4); } else { v11 = (void *)sub_10070460C(); if ( !v11 ) { sub_100706FB0(20, 161, 65, "ssl_lib.c", 1518); return nullptr; } } v13 = *(void **)(*(_QWORD *)(a1 + 256) + 672LL); if ( v13 ) sub_1006AEDAC(v13); v14 = sub_100700418(a2, a3); v15 = *(_QWORD *)(a1 + 256); *(_QWORD *)(v15 + 672) = v14; if ( !v14 ) { v21 = 1530; LABEL_51: sub_100706FB0(20, 161, 65, "ssl_lib.c", v21); goto LABEL_52; } *(_QWORD *)(v15 + 680) = a3; if ( a3 < 1 ) { LABEL_48: if ( a4 ) *a4 = v11; return v11; } v16 = 0; v17 = v10 - 2LL; v18 = v10 - 1LL; if ( v10 != 3 ) { while ( 1 ) { v19 = *(_QWORD *)(a1 + 128); if ( v19 ) { if ( !a2[v17] && (unsigned __int8)a2[v18] == 255 ) break; } if ( a2[v17] == 86 && !a2[v18] ) { if ( !(*(__int64 (__fastcall **)(__int64, __int64, _QWORD, _QWORD))(*(_QWORD *)(a1 + 8) + 128LL))(a1, 119, 0, 0) ) goto LABEL_56; LABEL_28: a2 += v10; goto LABEL_29; } v20 = sub_10066B43C(a1, a2); a2 += v10; if ( v20 && !(unsigned int)sub_100704974(v11, v20) ) goto LABEL_50; LABEL_29: v16 += v10; if ( v16 >= a3 ) goto LABEL_48; } if ( *(_DWORD *)(a1 + 676) ) goto LABEL_58; *(_DWORD *)(v19 + 1188) = 1; goto LABEL_28; } while ( 1 ) { v22 = *(_QWORD *)(a1 + 128); if ( v22 ) { if ( *a2 ) goto LABEL_45; if ( !a2[v17] && (unsigned __int8)a2[v18] == 255 ) { if ( *(_DWORD *)(a1 + 676) ) { LABEL_58: sub_100706FB0(20, 161, 345, "ssl_lib.c", 1543); v24 = 40; goto LABEL_59; } *(_DWORD *)(v22 + 1188) = 1; goto LABEL_37; } } if ( !*a2 && a2[v17] == 86 && !a2[v18] ) break; LABEL_45: v23 = sub_10066B43C(a1, a2); a2 += v10; if ( v23 && !(unsigned int)sub_100704974(v11, v23) ) { LABEL_50: v21 = 1580; goto LABEL_51; } LABEL_47: v16 += 3; if ( v16 >= a3 ) goto LABEL_48; } if ( (*(__int64 (__fastcall **)(__int64, __int64, _QWORD, _QWORD))(*(_QWORD *)(a1 + 8) + 128LL))(a1, 119, 0, 0) ) { LABEL_37: a2 += v10; goto LABEL_47; } LABEL_56: sub_100706FB0(20, 161, 373, "ssl_lib.c", 1566); if ( !*(_QWORD *)(a1 + 128) ) goto LABEL_52; v24 = 86; LABEL_59: sub_1006521C0(a1, 2, v24); LABEL_52: if ( !a4 || !*a4 ) sub_10070447C(v11); return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source