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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x11c]
cmp eax, dword [ecx + 8]
jbe 0x51dd06
sub esp, 0x19c
lea edi, [esp + 0xdc]
xor eax, eax
call fcn.0044f1a0
mov ecx, dword [0xb77530]
mov edx, dword [0xb77534]
mov ebx, dword [0xb77538]
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], ebx
mov ecx, dword [esp + 0x1ac]
mov dword [esp + 0xe8], ecx
mov edx, dword [esp + 0x1b0]
mov dword [esp + 0xec], edx
mov ebx, dword [esp + 0x1b4]
mov dword [esp + 0xf0], ebx
mov eax, 2
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x58], ebp
xor ebp, ebp
mov dword [esp + 0x54], ebp
xor ebp, ebp
mov dword [esp + 0xd8], ebp
xor ebp, ebp
jmp 0x51d6cb
mov dword [esp + 0x7c], edx
lea ecx, [esp + 0xdc]
mov ebx, dword [ecx + edx*4]
mov ebp, dword [esp + edx*4 + 0xe0]
mov esi, dword [esp + edx*4 + 0xe4]
mov edi, dword [ecx + eax*4]
mov ecx, dword [esp + eax*4 + 0xe0]
mov eax, dword [esp + eax*4 + 0xe4]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.00519420
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x7c]
lea ebp, [esp + 0xdc]
mov dword [ebp + ebx*4 + 4], ecx
mov dword [ebp + ebx*4 + 8], edx
mov dword [ebp + ebx*4], eax
mov esi, dword [esp + 0xd4]
mov dword [esp], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], esi
mov esi, dword [esp + 0xd8]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1c8]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1cc]
mov dword [esp + 0x2c], edx
call fcn.0051a120
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc0], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x7c]
lea edx, [esp + 0xdc]
mov ecx, dword [edx + edi*4]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + edi*4 + 0xe0]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + edi*4 + 0xe4]
mov dword [esp + 0x58], ecx
mov dword [edx + edi*4 + 4], ebx
mov dword [edx + edi*4 + 8], ebp
mov dword [edx + edi*4], esi
mov edx, dword [esp + edi*4 + 0xe8]
mov ecx, dword [esp + edi*4 + 0xec]
mov eax, dword [esp + edi*4 + 0xf0]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x1ac]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1b4]
mov dword [esp + 0x20], edx
call fcn.00518420
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x7c]
mov dword [esp + ebx*4 + 0xe8], eax
mov dword [esp + ebx*4 + 0xec], ecx
mov dword [esp + ebx*4 + 0xf0], edx
mov ebp, dword [esp + 0xc0]
mov dword [esp], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xc4]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1c8]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1cc]
mov dword [esp + 0x2c], edx
call fcn.0051a120
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x48], ebp
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + ebx*4 + 0xe8]
mov dword [esp + 0xc4], ebp
mov ebp, dword [esp + ebx*4 + 0xec]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + ebx*4 + 0xf0]
mov dword [esp + ebx*4 + 0xe8], eax
mov dword [esp + ebx*4 + 0xec], ecx
mov dword [esp + ebx*4 + 0xf0], edx
mov eax, dword [esp + 0x64]
add eax, 2
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x1ac]
mov edx, dword [esp + 0x1b0]
mov ebx, dword [esp + 0x1b4]
mov dword [esp + 0x58], ebp
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xd8], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x48], ebp
mov dword [esp + 0xd4], esi
mov dword [esp + 0x4c], edi
cmp eax, 0x10
jge 0x51d715
mov dword [esp + 0x64], eax
shr eax, 0x1f
mov ebx, dword [esp + 0x64]
add eax, ebx
sar eax, 1
cmp eax, 0x10
jae 0x51dcff
lea eax, [eax + eax*2]
cmp ebx, 0x10
jae 0x51dcff
lea edx, [ebx + ebx*2]
inc ebx
cmp ebx, 0x10
jb 0x51d419
jmp 0x51dcff
nop
nop
mov eax, dword [esp + 0x1a8]
cmp eax, 1
jl 0x51dcbd
mov ecx, dword [esp + 0x1a0]
mov dword [ecx], 1
mov edx, dword [esp + 0x1bc]
lea ebx, [edx - 1]
mov dword [esp + 0x60], ebx
mov dword [esp + 0xb0], eax
mov eax, 1
mov dword [esp + 0x1a4], eax
mov eax, dword [esp + 0xb0]
jmp 0x51dc32
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x50]
shr edi, 0x1c
lea edi, [edi + edi*2]
mov esi, dword [esp + edi*4 + 0xdc]
mov dword [esp + 0xcc], esi
mov esi, dword [esp + edi*4 + 0xe0]
mov edi, dword [esp + edi*4 + 0xe4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call fcn.00518420
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc4], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0xd4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xd8]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1c4]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c8]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1cc]
mov dword [esp + 0x2c], esi
call fcn.0051a120
mov eax, dword [esp + 0x5c]
add eax, 4
mov dword [esp + 0x5c], eax
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
shl eax, 4
mov dword [esp + 0x48], edx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x54], eax
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xd8], edx
mov edx, dword [esp + 0x90]
mov eax, ebx
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x5c]
cmp edx, 0x20
jge 0x51dc0d
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x60]
cmp ebx, eax
je 0x51dbec
mov dword [esp + 0xd0], ecx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x78]
mov dword [esp + 0x14], edx
call fcn.00519420
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0xd0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xd8]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c4]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c8]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1cc]
mov dword [esp + 0x2c], esi
call fcn.0051a120
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xcc], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x54], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x58], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.00519420
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc8], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0xcc]
mov dword [esp], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c4]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c8]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1cc]
mov dword [esp + 0x2c], esi
call fcn.0051a120
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xc4], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x54], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x58], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.00519420
mov eax, dword [esp + 0x18]
mov dword [esp + 0xcc], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0xc4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c4]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c8]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1cc]
mov dword [esp + 0x2c], esi
call fcn.0051a120
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xc4], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x54], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x58], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.00519420
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc8], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0xc4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c4]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c8]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1cc]
mov dword [esp + 0x2c], esi
call fcn.0051a120
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0xc8]
mov dword [esp + 0xd8], edi
mov edi, dword [esp + 0x68]
jmp 0x51d761
test edx, edx
jne 0x51d8e5
mov ebx, ecx
mov edx, edi
mov ecx, ebp
mov eax, esi
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x48]
jmp 0x51d761
dec ebx
mov edx, dword [esp + 0x60]
mov edx, dword [esp + 0x1bc]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1a4], eax
mov eax, dword [esp + 0xa8]
test ebx, ebx
jl 0x51dc7e
cmp ebx, edx
jae 0x51dcf8
mov dword [esp + 0x7c], ebx
mov edx, dword [esp + 0x1b8]
mov edx, dword [edx + ebx*4]
mov dword [esp + 0xa0], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x1a4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
jmp 0x51d8c4
mov dword [esp], ecx
mov ecx, dword [esp + 0x1a4]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00516bb0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1d4], ecx
mov dword [esp + 0x1d8], edx
add esp, 0x19c
ret
lea eax, [0x7ab600]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0043a890
mov ecx, dword [esp + 0xc]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0xd4]
mov edi, dword [esp + 0x4c]
mov eax, 1
jmp 0x51d72e
call fcn.004287c0
ud2
call fcn.004287c0
ud2
call fcn.0044d880
jmp fcn.0051d370