Function at 0x51b420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x5c]
cmp eax, dword [ecx + 8]
jbe 0x51ba4c
sub esp, 0xdc
mov eax, 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
mov ecx, dword [esp + 0xec]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xf0]
mov dword [esp + 8], edx
call fcn.004a3100
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
lea eax, [0x80eae0]
mov dword [esp], eax
mov eax, dword [0xc5bac8]
mov dword [esp + 4], eax
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
call fcn.0040ac10
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0xe8]
mov dword [esp], ecx
mov ecx, dword [esp + 0xec]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xf0]
mov dword [esp + 8], ecx
call fcn.004a07f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004f01b0
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 0x20]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
test eax, eax
je 0x51ba2f
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x28], edx
mov eax, dword [edx + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
lea edx, [0x809ba0]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call fcn.00438ab0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
lea edi, [esp + 0xac]
xor eax, eax
call fcn.0044c954
lea eax, [0x80e1a0]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
lea ebp, [esp + 0xac]
mov dword [esp + 8], ebp
call fcn.0040b900
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
jmp 0x51b5dd
mov dword [esp + 0x5c], edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], eax
mov dword [edx + ecx*4], ebx
lea ecx, [esp + 0xac]
mov dword [esp], ecx
call fcn.0040bb80
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x2c], ecx
mov ebx, dword [esp + 0xac]
test ebx, ebx
je 0x51b632
mov ebx, dword [ebx]
lea ebp, [ecx + 1]
cmp ebp, eax
jle 0x51b5b3
mov dword [esp + 0x34], ebx
lea ebx, [0x809ba0]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
call fcn.00438c30
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebp, [eax + 1]
mov ebx, dword [esp + 0x34]
mov eax, ecx
mov ecx, dword [esp + 0x2c]
jmp 0x51b5b3
mov dword [esp + 0x6c], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
lea eax, [0x925e90]
mov dword [esp], eax
lea eax, [esp + 0x88]
mov dword [esp + 4], eax
call fcn.004078f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004bd1e0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
call eax
xor eax, eax
jmp 0x51b76a
mov ebp, dword [esp + 0x38]
lea ebx, [ebp + 1]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], ebx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004a0b90
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jge 0x51b763
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.004a0480
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004a07f0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0xe0]
mov dword [esp], ecx
mov edx, dword [esp + 0xe4]
mov dword [esp + 4], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
call fcn.0051ba60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x51b68f
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], eax
add esp, 0xdc
ret
mov ecx, dword [esp + 0x44]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jge 0x51ba12
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x3c], edx
lea ebx, [0x80e1a0]
mov dword [esp], ebx
mov ebp, dword [esp + 0x58]
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
call fcn.0040cc60
mov esi, dword [esp + 0xc]
lea edi, [esp + 0x94]
call fcn.0044ce34
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x51b9e9
xor ecx, ecx
test ecx, ecx
je 0x51b994
mov dword [esp + 0x68], ecx
lea eax, [0x834380]
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
call fcn.004079f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
call fcn.004f0c70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
test edx, edx
jne 0x51b928
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.004f06a0
movzx eax, byte [esp + 4]
test al, al
je 0x51b8c7
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x51b8bf
movzx edx, byte [0xc5cc40]
test dl, dl
je 0x51b8b9
mov dword [0xc5cc44], ecx
mov edx, dword [0xc6f140]
test edx, edx
jne 0x51b8a8
mov eax, dword [esp + 0x48]
mov dword [0xc5cc48], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x51b8a0
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x51b88d
or edx, 0x80
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x24], edx
xor ebx, ebx
jmp 0x51b6a2
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x51b88d
lea edi, [0xc5cc48]
mov eax, dword [esp + 0x48]
call fcn.0044c860
jmp 0x51b869
mov eax, dword [esp + 0x48]
jmp 0x51b869
xor eax, eax
xor ecx, ecx
xor edx, edx
jmp 0x51b88d
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
mov ecx, dword [esp + 0xe4]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x14], edx
call fcn.0051ba60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x51b763
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], eax
add esp, 0xdc
ret
je 0x51b990
mov eax, dword [edx + 4]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea eax, [0x8a66f2]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b0340
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], eax
add esp, 0xdc
ret
mov eax, edx
jmp 0x51b92d
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa8]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.0051aad0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x51b763
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], ecx
add esp, 0xdc
ret
lea ecx, [0x80e120]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
call fcn.0040cc60
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [esp + 0x64]
jmp 0x51b7bd
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
add esp, 0xdc
ret
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
add esp, 0xdc
ret
call fcn.0044b100
jmp fcn.0051b420