Function at 0x4d8ad0
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 0x4d8e9a
sub esp, 0x58
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x90]
cmp ebx, ecx
jne 0x4d8e81
mov ebp, dword [esp + 0x78]
cmp ebp, ecx
jne 0x4d8e81
mov ebp, dword [esp + 0x84]
cmp ebp, ecx
jne 0x4d8e81
mov eax, ecx
shl ecx, 1
mov edx, dword [esp + 0x64]
cmp edx, ecx
jl 0x4d8b30
jb 0x4d8e7c
mov esi, dword [esp + 0x5c]
jmp 0x4d8bb8
cmp ecx, 1
jne 0x4d8b77
lea eax, [0x6dbbc0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0046c5c0
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x84]
mov ecx, 1
mov edx, 1
mov esi, eax
mov eax, dword [esp + 0x90]
jmp 0x4d8bb8
mov dword [esp + 0x30], ecx
lea eax, [0x6dbbc0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 8], eax
call fcn.0046c5c0
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x84]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x50], esi
test ecx, ecx
je 0x4d8bf5
mov dword [esp], esi
shl ecx, 2
mov dword [esp + 4], ecx
call fcn.00471ff0
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
jmp 0x4d8c47
mov ecx, dword [esp + 0x34]
inc ecx
mov ebx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x90]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x84]
mov esi, edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
cmp eax, ebp
jle 0x4d8d65
lea ecx, [ebp + eax]
mov edi, dword [esp + 0x74]
mov edi, dword [edi + ebp*4]
cmp edx, ecx
jb 0x4d8e77
cmp ebp, ecx
ja 0x4d8e70
mov dword [esp + 0x4c], ecx
mov ecx, ebp
shl ebp, 2
sub edx, ecx
mov dword [esp + 0x48], edx
neg edx
sar edx, 0x1f
and ebp, edx
lea edx, [esi + ebp]
mov dword [esp + 0x54], edx
mov dword [esp], edx
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x48]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
call fcn.004e2ee0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jae 0x4d8e6b
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x50]
mov ebx, dword [edx + eax*4]
mov ebp, dword [esp + 0x54]
mov dword [esp], ebp
mov ebp, dword [esp + 0x90]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x48]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x8c]
imul ebx, edi
mov dword [esp + 0x18], ebx
call fcn.004e2ee0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add edx, ecx
lea ebx, [edx + eax]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
cmp ebp, esi
jbe 0x4d8e62
mov edi, dword [esp + 0x50]
mov dword [edi + esi*4], ebx
cmp ecx, edx
ja 0x4d8d54
cmp eax, ebx
jbe 0x4d8d5e
mov eax, 1
jmp 0x4d8c0f
xor eax, eax
jmp 0x4d8c0f
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x4d8ddd
cmp eax, edx
ja 0x4d8e5b
cmp eax, ecx
ja 0x4d8e56
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
sub edx, eax
sub ecx, eax
mov ebp, edx
neg edx
shl eax, 2
sar edx, 0x1f
and eax, edx
add eax, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x20], eax
call fcn.004e2d60
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x90]
mov esi, dword [esp + 0x50]
jmp 0x4d8e26
cmp eax, edx
ja 0x4d8e4f
cmp eax, ecx
ja 0x4d8e4a
sub ecx, eax
mov ebx, edx
sub ebx, eax
neg ebx
mov ebp, eax
shl eax, 2
sar ebx, 0x1f
and eax, ebx
lea ebx, [esi + eax]
cmp ebp, ecx
jg 0x4d8e00
mov ecx, ebp
test eax, eax
je 0x4d8e26
mov dword [esp], esi
mov dword [esp + 4], ebx
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.004721c0
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x90]
mov esi, dword [esp + 0x50]
cmp ebp, edx
ja 0x4d8e43
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], edx
add esp, 0x58
ret
mov ecx, ebp
call fcn.004718f0
call fcn.00471910
mov ecx, eax
call fcn.004718f0
call fcn.00471910
mov ecx, eax
call fcn.004718f0
mov eax, esi
mov ecx, ebp
call fcn.004718b0
call fcn.004718b0
mov eax, ebp
call fcn.00471910
call fcn.004718f0
call fcn.004718f0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x78a5d0]
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.00470430
jmp fcn.004d8ad0