// // sub_638840 from 0x638840 to 0x6389ee (430 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_638840(int a1, bool *a2) { int v3; // r11 unsigned __int8 *v5; // r0 int v6; // r3 unsigned __int8 *v7; // r11 int v8; // r3 int v9; // t1 char v10; // r2 bool v11; // zf unsigned __int8 *v13; // r10 int v14; // r3 int v15; // t1 bool v16; // zf _BYTE *v17; // r7 int v18; // r9 int v19; // r3 int result; // r0 int v21; // r3 v3 = 0; *a2 = 0; sub_62E0A4(a1, 0); *(_DWORD *)(a1 + 1136) = sub_638C2C; *(_DWORD *)(a1 + 1140) = sub_638568; *(_DWORD *)(a1 + 1128) = &stru_1B7740; *(_DWORD *)(a1 + 1188) = -1; *(_DWORD *)(a1 + 1132) = a1; sub_63D824(a1 + 1160, &off_A2D31C); sub_63A6C4(a1 + 1088); v5 = *(unsigned __int8 **)(a1 + 384); *(_BYTE *)(a1 + 1180) = 1; while ( 1 ) { v6 = (int)v5; if ( v5 ) v6 = 1; if ( v3 ) v6 = 0; if ( !v6 ) { if ( *(_DWORD *)(a1 + 1188) != 2 ) goto LABEL_34; LABEL_38: result = v3; if ( v3 ) return result; goto LABEL_41; } if ( !*v5 ) break; v7 = v5; if ( *v5 == 61 ) goto LABEL_19; do { v9 = *++v7; v8 = v9; v10 = v9; if ( v9 ) v10 = 1; v11 = v8 == 61; if ( v8 != 61 ) v11 = v8 == 0; } while ( !v11 ); if ( v8 != 59 && v10 & 1 ) { LABEL_19: v13 = v7; do { v15 = *++v13; v14 = v15; v16 = v15 == 59; if ( v15 != 59 ) v16 = v14 == 0; } while ( !v16 ); if ( !sub_62AB64(v5, "AUTH=", 5) ) { LABEL_25: v3 = 3; goto LABEL_26; } } else { v13 = v7; if ( !sub_62AB64(v5, "AUTH=", 5) ) goto LABEL_25; } v17 = v7 + 1; v18 = v13 - (v7 + 1); v3 = sub_63D750(a1 + 1160, (char *)v7 + 1); if ( v3 && sub_62AB64(v17, "+APOP", v18) ) { *(_DWORD *)(a1 + 1172) = 0; v3 = 0; *(_DWORD *)(a1 + 1188) = 2; } LABEL_26: if ( *v13 == 59 ) ++v13; v5 = v13; } if ( *(_DWORD *)(a1 + 1188) == 2 ) goto LABEL_41; v3 = *v5; LABEL_34: v19 = *(_DWORD *)(a1 + 1172); if ( v19 ) { if ( v19 == -33 ) { *(_DWORD *)(a1 + 1188) = -1; goto LABEL_38; } v19 = 4; } *(_DWORD *)(a1 + 1188) = v19; result = v3; if ( v3 ) return result; LABEL_41: v21 = *(_DWORD *)(a1 + 664); *(_DWORD *)(a1 + 1144) = 1; if ( (*(_DWORD *)(v21 + 64) & 1) == 0 || *(_BYTE *)(a1 + 1148) || (result = sub_6454E8(a1, *(unsigned __int8 *)(a1 + 1148), a1 + 1148)) == 0 && (result = *(unsigned __int8 *)(a1 + 1148), *(_BYTE *)(a1 + 1148)) ) { result = sub_63A580(a1 + 1088, 0); *a2 = *(_DWORD *)(a1 + 1144) == 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source