Function at 0x5d9e00
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 0x5da11f
sub esp, 0x40
lea eax, [0x6db200]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x4c]
lea ebx, [edx + ecx]
mov ebp, dword [esp + 0x6c]
lea ebx, [ebp + ebx + 9]
mov dword [esp + 0x2c], ebx
mov dword [esp + 8], ebx
call fcn.0046c5c0
mov eax, dword [esp + 0xc]
nop
mov ecx, dword [esp + 0x2c]
cmp ecx, 2
jae 0x5d9e86
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 2
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
movzx edx, word [esp + 0x74]
mov ebx, edx
rol dx, 8
mov word [eax], dx
cmp ecx, 9
jb 0x5d9ea0
mov edx, 9
jmp 0x5d9edd
mov dword [esp], eax
mov dword [esp + 4], 9
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 7
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx ebx, word [esp + 0x74]
mov ebp, ecx
mov ecx, edx
mov edx, ebp
mov dword [eax + 2], 0x454b5048
mov dword [eax + 5], 0x31762d45
mov ebp, dword [esp + 0x4c]
lea esi, [ebp + edx]
cmp ecx, esi
jae 0x5d9f2d
mov dword [esp + 0x28], edx
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], eax
add edx, eax
mov dword [esp], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.004721c0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
lea edx, [ecx + eax]
mov ebx, dword [esp + 0x2c]
cmp ebx, edx
jb 0x5d9f68
mov ebp, dword [esp + 0x38]
jmp 0x5d9fa2
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
mov ebp, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], ebp
add eax, ebp
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004721c0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
lea edx, [ecx + eax]
mov ebx, dword [esp + 0x2c]
cmp ebx, edx
jb 0x5d9fdd
mov ebp, dword [esp + 0x38]
jmp 0x5da013
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], ebp
add eax, ebp
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004721c0
lea eax, [0x6db200]
mov dword [esp], eax
movzx eax, word [esp + 0x74]
movzx eax, ax
mov dword [esp + 0x24], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0046c5c0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], 0
lea ecx, [0x5db970]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
call fcn.005d9710
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
call eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5da106
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x5da106
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
add esp, 0x40
ret
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x78a730]
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.00470430
jmp fcn.005d9e00