Function at 0x597240
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5974ac
sub esp, 0x64
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.004ccb10
mov dword [esp + 0x25], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
xor edx, edx
jmp 0x597304
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x60], esi
add ebx, esi
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004721c0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x40]
lea edx, [eax + 1]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
cmp eax, edx
jle 0x597451
mov dword [esp + 0x40], edx
mov ebx, dword [ecx + edx*4]
test edx, edx
jle 0x59739e
mov ebp, dword [esp + 0x4c]
nop
nop
test ebp, ebp
je 0x597332
lea esi, [esp + 0x4c]
cmp ebp, esi
je 0x59733a
jmp 0x597493
lea ebp, [esp + 0x4c]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
inc esi
mov edi, dword [esp + 0x50]
cmp ebp, esi
jae 0x597395
mov dword [esp + 0x38], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x54], esi
mov byte [esi + edi - 1], 0x2e
lea eax, [esp + 0x25]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x13
mov dword [esp + 0xc], ebx
sar ebx, 0x1f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0xa
call fcn.00482a20
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
nop
test eax, eax
je 0x5973eb
lea ebx, [esp + 0x4c]
cmp eax, ebx
je 0x5973f3
jmp 0x59747b
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
lea ebp, [ebx + edx]
mov esi, dword [esp + 0x50]
cmp eax, ebp
jae 0x5972bf
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], ebx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
jmp 0x5972bf
mov eax, dword [esp + 0x50]
mov ecx, eax
neg eax
mov edx, dword [esp + 0x54]
cmp edx, eax
ja 0x59746d
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x64
ret
test ecx, ecx
je 0x597476
call fcn.00462020
call fcn.00462060
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789e58]
mov dword [esp + 4], eax
call fcn.0046a9e0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789e58]
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.00470430
jmp fcn.00597240