Function at 0x616070
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x616358
sub esp, 0x40
lea eax, [0x6db200]
mov dword [esp], eax
mov dword [esp + 4], 0x30
mov dword [esp + 8], 0x30
call fcn.0046c5c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x48]
movzx edx, word [ecx + 0xc]
shr dx, 8
mov byte [eax], dl
movzx ecx, word [ecx + 0xc]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
test edx, edx
je 0x6160cd
mov ebx, dword [ecx + 4]
jmp 0x6160d9
mov edx, dword [0x91ee98]
mov ebx, dword [0x91ee9c]
mov dword [esp + 0x3c], eax
lea ecx, [eax + 2]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x2e
mov dword [esp + 0x10], 0x2e
mov dword [esp + 0x14], 0x2e
call fcn.00498530
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x61630a
lea eax, [0x6eb9a0]
mov ecx, dword [esp + 0x4c]
cmp dword [ecx + 0x50], eax
jne 0x6162b7
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
test edx, edx
je 0x616136
mov eax, dword [eax + 4]
jmp 0x616142
mov edx, dword [0x91ee98]
mov eax, dword [0x91ee9c]
mov ecx, dword [ecx + 0x54]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], 0x30
call fcn.005b22f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x616287
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
lea ecx, [0x6e7140]
mov dword [esp], ecx
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
lea ecx, [0x6db200]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + 2]
mov dword [esp + 0x30], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.0046c5c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov ebx, dword [0x93f150]
test ebx, ebx
je 0x6161e8
call fcn.00471840
mov dword [edi], eax
mov ebx, dword [edx]
mov dword [edi + 4], ebx
mov dword [edx], eax
test ecx, ecx
jbe 0x61634e
mov ebx, dword [edx]
mov ebp, dword [esp + 0x2c]
mov esi, ebp
sar ebp, 8
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ecx, dword [edx + 4]
cmp ecx, 1
jbe 0x616344
mov ebx, dword [edx]
xchg esi, eax
mov byte [ebx + 1], al
xchg esi, eax
mov ecx, dword [edx + 4]
cmp ecx, 2
jb 0x61633a
mov eax, dword [edx]
mov ebx, dword [edx + 8]
add ecx, 0xfffffffe
add ebx, 0xfffffffe
neg ebx
sar ebx, 0x1f
and ebx, 2
add eax, ebx
cmp esi, ecx
jl 0x61623b
mov esi, ecx
mov ecx, dword [esp + 0x34]
cmp ecx, eax
je 0x616257
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.004721c0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x30
mov dword [esp + 0x58], 0x30
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
add esp, 0x40
ret
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x40
ret
lea eax, [0x6e6720]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x4c
lea ecx, [0x732206]
mov dword [eax], ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x78aa3c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x40
ret
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x40
ret
mov eax, 2
call fcn.00471910
mov eax, 1
call fcn.004718b0
xor eax, eax
mov ecx, eax
call fcn.004718b0
nop
call fcn.00470430
jmp fcn.00616070