Function at 0x52ba10
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x52beaa
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
lea ecx, [eax - 0xc]
cmp ecx, 4
ja 0x52bcd0
mov ecx, dword [esp + 0x58]
test ecx, ecx
jle 0x52bc8d
mov edx, dword [esp + 0x50]
test edx, edx
je 0x52ba74
mov eax, dword [edx + 4]
lea ecx, [0x914e28]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409f00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
mov edx, eax
mov eax, dword [esp + 0x5c]
jmp 0x52ba76
mov ebx, edx
test edx, edx
jne 0x52bc55
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
call eax
cmp dword [esp + 4], 0x10
jne 0x52bc12
lea eax, [0x6d63e0]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x14]
mov ebx, dword [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 0x10
call edx
lea eax, [0x6faf80]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [0x93f150]
test ecx, ecx
jne 0x52bb07
mov edx, dword [esp + 0x54]
jmp 0x52bb12
call fcn.00471830
mov edx, dword [esp + 0x54]
mov dword [edi], edx
mov dword [esp + 0x44], eax
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x48]
movzx ebx, byte [edx + 7]
movzx ebp, byte [edx + 6]
mov esi, ebp
shl ebp, 8
or ebx, ebp
shr esi, 0x18
movzx ebp, byte [edx + 5]
mov edi, ebp
shl ebp, 0x10
or ebx, ebp
shr edi, 0x10
or esi, edi
movzx ebp, byte [edx + 4]
mov edi, ebp
shr ebp, 8
or esi, ebp
shl edi, 0x18
or ebx, edi
movzx ebp, byte [edx + 3]
or ebp, esi
movzx esi, byte [edx + 2]
shl esi, 8
or esi, ebp
movzx ebp, byte [edx + 1]
shl ebp, 0x10
or ebp, esi
movzx esi, byte [edx]
shl esi, 0x18
or esi, ebp
movzx ebp, byte [edx + 0xf]
movzx edi, byte [edx + 0xe]
mov ecx, edi
shl edi, 8
or ebp, edi
shr ecx, 0x18
movzx edi, byte [edx + 0xd]
mov dword [esp + 0x40], edi
shr edi, 0x10
or edi, ecx
mov ecx, esi
mov esi, dword [esp + 0x40]
shl esi, 0x10
or esi, ebp
movzx ebp, byte [edx + 0xc]
mov dword [esp + 0x40], ebp
shr ebp, 8
or ebp, edi
mov edi, dword [esp + 0x40]
shl edi, 0x18
or edi, esi
movzx esi, byte [edx + 0xb]
or esi, ebp
movzx ebp, byte [edx + 0xa]
shl ebp, 8
or ebp, esi
movzx esi, byte [edx + 9]
shl esi, 0x10
or esi, ebp
movzx edx, byte [edx + 8]
shl edx, 0x18
or edx, esi
nop
nop
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ecx
mov dword [eax + 0x98], edi
mov dword [eax + 0x9c], edx
mov ecx, 2
jmp 0x52bd33
lea eax, [0x6e6720]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2c
lea ecx, [0x72d262]
mov dword [eax], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [0x78aa3c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
add esp, 0x4c
ret
mov edx, dword [edx + 0xc]
mov ebx, dword [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ebx
add esp, 0x4c
ret
lea eax, [0x6e6720]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x64
lea ecx, [0x732e06]
mov dword [eax], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [0x78aa3c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
add esp, 0x4c
ret
lea eax, [0x6e6720]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x27
lea ecx, [0x72b610]
mov dword [eax], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [0x78aa3c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
add esp, 0x4c
ret
shl eax, 4
mov ebx, dword [esp + 0x44]
mov dword [ebx + eax + 0x10], ebp
mov dword [ebx + eax + 0x14], edx
mov dword [ebx + eax + 0x18], esi
mov dword [ebx + eax + 0x1c], edi
mov edx, dword [esp + 0x3c]
lea ecx, [edx + 2]
mov eax, ebx
cmp ecx, 0x10
jge 0x52be65
mov edx, ecx
shr ecx, 0x1f
lea ebx, [edx + ecx]
mov ebp, ebx
sar ebx, 1
mov esi, edx
shl edx, 2
and edx, 0xc
mov edi, esi
sar esi, 2
and esi, 3
or esi, edx
mov edx, esi
shl esi, 1
and esi, 0xa
sar edx, 1
and edx, 5
shl ebx, 2
and ebx, 0xc
sar ebp, 3
and ebp, 3
or ebp, ebx
mov ebx, ebp
shl ebp, 1
and ebp, 0xa
sar ebx, 1
and ebx, 5
or ebx, ebp
or edx, esi
cmp ebx, 0x10
jae 0x52be9d
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edx
shl ebx, 4
mov ebp, dword [eax + ebx + 0x18]
mov dword [esp + 0x40], ebp
mov esi, dword [eax + ebx + 0x1c]
mov ecx, esi
shr esi, 1
shr ebp, 1
shl ecx, 0x1f
mov edi, dword [eax + ebx + 0x10]
mov dword [esp + 0x38], edi
mov ebx, dword [eax + ebx + 0x14]
mov dword [esp + 0x34], ebx
shl edi, 0x1f
mov edx, dword [esp + 0x38]
shr edx, 1
shl ebx, 0x1f
or ecx, ebp
or edi, esi
or ebx, edx
mov edx, dword [esp + 0x34]
shr edx, 1
mov ebp, dword [esp + 0x40]
test ebp, 1
je 0x52bde7
xor edx, 0xe1000000
mov ebp, dword [esp + 0x30]
cmp ebp, 0x10
jae 0x52be91
mov dword [esp + 0x40], edi
shl ebp, 4
mov dword [eax + ebp + 0x10], ebx
mov dword [eax + ebp + 0x14], edx
mov dword [eax + ebp + 0x18], ecx
mov dword [eax + ebp + 0x1c], edi
mov ebp, dword [esp + 0x3c]
lea esi, [ebp + 1]
mov dword [esp + 0x2c], esi
shl esi, 2
and esi, 0xc
mov ebp, dword [esp + 0x2c]
sar ebp, 2
and ebp, 3
or ebp, esi
mov esi, ebp
shl ebp, 1
and ebp, 0xa
sar esi, 1
and esi, 5
or esi, ebp
mov dword [esp + 0x2c], esi
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
xor ebp, ebx
xor edx, eax
xor esi, ecx
mov ebx, dword [esp + 0x40]
xor edi, ebx
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x52bd13
jmp 0x52be87
lea ecx, [0x78bdcc]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
add esp, 0x4c
ret
mov ecx, 0x10
call fcn.004718b0
mov eax, ebp
mov ecx, 0x10
call fcn.004718b0
mov eax, ebx
mov ecx, 0x10
call fcn.004718b0
nop
call fcn.00470430
jmp fcn.0052ba10