Function at 0x522160
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5223a0
sub esp, 0x48
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x5221b5
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5221ad
movzx ecx, byte [eax + 0xf]
mov edx, ecx
and ecx, 0x1f
test dl, 0x20
jne 0x5221a7
or ecx, 0x80
mov edx, dword [esp + 0x38]
jmp 0x5221bb
xor ecx, ecx
xor eax, eax
xor edx, edx
jmp 0x5221bb
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0048fa80
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x522223
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x52221b
movzx ebp, byte [ebx + 0xf]
mov esi, ebp
and ebp, 0x1f
xchg esi, eax
test al, 0x20
xchg esi, eax
jne 0x522215
or ebp, 0x80
mov esi, dword [esp + 0x30]
jmp 0x522229
xor ebp, ebp
xor ebx, ebx
xor esi, esi
jmp 0x522229
xor ebp, ebp
xor ebx, ebx
xor esi, esi
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.0048fa80
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x44], ebx
nop
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x522365
mov ebx, dword [esp + 0x28]
test ebx, 0x100
je 0x52234d
movzx ebx, byte [0x91ef20]
nop
test bl, bl
je 0x5222ae
lea ebx, [0x6db5c0]
mov dword [0x91ef24], ebx
mov ebx, dword [0x93f150]
test ebx, ebx
jne 0x522292
mov ebx, dword [esp + 0x3c]
jmp 0x5222a6
call fcn.00471840
mov ebx, dword [esp + 0x3c]
mov dword [edi], ebx
mov ebp, dword [0x91ef28]
mov dword [edi + 4], ebp
mov dword [0x91ef28], ebx
jmp 0x5222b2
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x20], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0048e970
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004908e0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], 3
mov edx, dword [esp + 0x20]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0046e610
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x52231c
xor eax, eax
xor ecx, ecx
jmp 0x522341
mov dword [esp + 0x24], eax
nop
lea eax, [0x6f4d20]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, eax
lea eax, [0x78aa70]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x48
ret
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x78a2a0]
mov dword [esp + 4], eax
call fcn.0046a9e0
lea eax, [0x6ed9c0]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x18
lea ecx, [0x7235da]
mov dword [eax], ecx
mov dword [eax + 8], 0
lea ecx, [0x6e2140]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.00470430
jmp fcn.00522160