Function at 0x645b70
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x645e98
sub esp, 0x30
mov eax, dword [esp + 0x38]
test eax, eax
je 0x645b9c
test eax, 0x80000000
jne 0x645b9c
mov ecx, dword [esp + 0x34]
jmp 0x645ba8
mov ecx, dword [esp + 0x34]
movzx edx, byte [ecx + 0x58]
test dl, dl
je 0x645be3
mov edx, dword [esp + 0x50]
test edx, edx
je 0x645bfb
cmp edx, 0xff
jg 0x645bcb
movzx ebx, byte [ecx + 0x58]
test bl, bl
jne 0x645bfb
mov ebx, dword [esp + 0x4c]
xor ebp, ebp
jmp 0x645e6e
mov eax, dword [0x913650]
mov ecx, dword [0x913654]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
add esp, 0x30
ret
mov eax, dword [0x913640]
mov ecx, dword [0x913644]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
add esp, 0x30
ret
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x645c0d
movzx ebp, byte [esp + 0x3c]
or ebp, 8
jmp 0x645c12
movzx ebp, byte [esp + 0x3c]
mov esi, dword [ecx + 0x54]
mov edi, dword [ecx + 0x4c]
cmp esi, 9
jae 0x645c66
xchg ebp, eax
mov byte [esp + 0x23], al
xchg ebp, eax
mov dword [esp], edi
mov dword [esp + 4], 9
mov dword [esp + 8], esi
mov dword [esp + 0xc], 9
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
movzx ebp, byte [esp + 0x23]
mov dword [edi], 0
xchg ebp, eax
mov byte [edi + 4], al
xchg ebp, eax
bswap eax
mov dword [edi + 5], eax
mov dword [ecx + 0x50], 9
mov dword [ecx + 0x54], esi
mov eax, dword [0x93f150]
test eax, eax
jne 0x645c8e
test ebx, ebx
jmp 0x645ca1
mov eax, edi
call fcn.00471840
mov dword [edi], eax
mov ebp, dword [ecx + 0x4c]
mov dword [edi + 4], ebp
test ebx, ebx
mov edi, eax
mov dword [ecx + 0x4c], edi
je 0x645d1c
cmp esi, 0xa
jb 0x645cb2
mov eax, 0xa
jmp 0x645d15
mov dword [esp], edi
mov dword [esp + 4], 0xa
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov dword [ebx + 0x54], eax
mov eax, dword [0x93f150]
test eax, eax
je 0x645d02
call fcn.00471840
mov dword [edi], ecx
mov eax, dword [ebx + 0x4c]
mov dword [edi + 4], eax
mov dword [ebx + 0x4c], ecx
mov ebx, dword [esp + 0x4c]
mov eax, edx
mov edi, ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
mov dword [ecx + 0x50], eax
mov byte [eax + edi - 1], dl
mov eax, dword [ecx + 0x54]
mov ebp, dword [ecx + 0x50]
mov esi, dword [esp + 0x44]
lea edi, [esi + ebp]
mov ebx, dword [ecx + 0x4c]
cmp eax, edi
jae 0x645d66
mov dword [esp + 0x28], ebp
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edi
lea ecx, [ebx + ebp]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.004721c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x50], eax
mov edx, dword [esp + 0x28]
mov dword [ecx + 0x54], edx
mov ebx, dword [0x93f150]
mov ebp, dword [esp + 0x50]
lea esi, [ebp + eax]
test ebx, ebx
je 0x645dc2
call fcn.00471840
mov ebx, dword [esp + 0x2c]
mov dword [edi], ebx
mov ebp, dword [ecx + 0x4c]
mov dword [edi + 4], ebp
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x2c]
mov dword [ecx + 0x4c], ebx
cmp edx, esi
jae 0x645e01
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x50]
mov edx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ebx
add eax, ebx
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.004721c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x54], eax
mov eax, dword [0x93f150]
test eax, eax
jne 0x645e45
mov eax, dword [esp + 0x2c]
jmp 0x645e56
call fcn.00471840
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
mov edx, dword [ecx + 0x4c]
mov dword [edi + 4], edx
mov dword [ecx + 0x4c], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
add esp, 0x30
ret
inc ebp
cmp edx, ebp
jle 0x645bfb
movzx esi, byte [ebx + ebp]
xchg esi, eax
test al, al
xchg esi, eax
je 0x645e6d
mov eax, dword [0x913658]
mov ecx, dword [0x91365c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
add esp, 0x30
ret
call fcn.00470430
jmp fcn.00645b70