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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x118]
cmp eax, dword [ecx + 8]
jbe 0x515cac
sub esp, 0x198
lea edi, [esp + 0xd8]
xor eax, eax
call fcn.0045af60
mov ecx, dword [0x816150]
mov edx, dword [0x816154]
mov ebx, dword [0x816158]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ebx
mov ecx, dword [esp + 0x1a8]
mov dword [esp + 0xe4], ecx
mov edx, dword [esp + 0x1ac]
mov dword [esp + 0xe8], edx
mov ebx, dword [esp + 0x1b0]
mov dword [esp + 0xec], ebx
mov eax, 2
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x54], ebp
xor ebp, ebp
mov dword [esp + 0x58], ebp
xor ebp, ebp
mov dword [esp + 0xd4], ebp
xor ebp, ebp
jmp 0x515645
mov dword [esp + 0x78], ebp
mov eax, dword [esp + ebp*4 + 0xd8]
mov ecx, dword [esp + ebp*4 + 0xdc]
mov ebx, dword [esp + ebp*4 + 0xe0]
mov esi, dword [esp + edx*4 + 0xd8]
mov edi, dword [esp + edx*4 + 0xdc]
mov edx, dword [esp + edx*4 + 0xe0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
call fcn.00511650
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x78]
mov dword [esp + ebx*4 + 0xdc], ecx
mov dword [esp + ebx*4 + 0xe0], edx
mov dword [esp + ebx*4 + 0xd8], eax
mov ebp, dword [esp + 0xd0]
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 + 0xd4]
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 + 0x1c0]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1c4]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c8]
mov dword [esp + 0x2c], edx
call fcn.00511ff0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
mov dword [esp + 0xbc], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x4c], ebp
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + edi*4 + 0xd8]
mov dword [esp + 0xc0], ebp
mov ebp, dword [esp + edi*4 + 0xdc]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + edi*4 + 0xe0]
mov dword [esp + 0x58], ebp
mov dword [esp + edi*4 + 0xdc], eax
mov dword [esp + edi*4 + 0xe0], ecx
mov dword [esp + edi*4 + 0xd8], esi
mov ebp, dword [esp + edi*4 + 0xe4]
mov ebx, dword [esp + edi*4 + 0xe8]
mov edx, dword [esp + edi*4 + 0xec]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x1a8]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1ac]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1b0]
mov dword [esp + 0x20], edx
call fcn.00510610
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x78]
mov dword [esp + ebx*4 + 0xe4], eax
mov dword [esp + ebx*4 + 0xe8], ecx
mov dword [esp + ebx*4 + 0xec], edx
mov ebp, dword [esp + 0xbc]
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 + 0xc0]
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 + 0x1c0]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1c4]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c8]
mov dword [esp + 0x2c], edx
call fcn.00511ff0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + ebx*4 + 0xe4]
mov dword [esp + 0xc0], ebp
mov ebp, dword [esp + ebx*4 + 0xe8]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + ebx*4 + 0xec]
mov dword [esp + ebx*4 + 0xe4], eax
mov dword [esp + ebx*4 + 0xe8], ecx
mov dword [esp + ebx*4 + 0xec], edx
mov eax, dword [esp + 0x64]
add eax, 2
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1a8]
mov edx, dword [esp + 0x1ac]
mov ebx, dword [esp + 0x1b0]
mov dword [esp + 0x58], ebp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xd4], eax
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0xd0], edi
cmp eax, 0x10
jge 0x51568f
mov dword [esp + 0x64], eax
shr eax, 0x1f
mov ebx, dword [esp + 0x64]
add eax, ebx
sar eax, 1
cmp eax, 0x10
jae 0x515ca1
lea edx, [eax + eax*2]
cmp ebx, 0x10
jae 0x515c95
lea ebp, [ebx + ebx*2]
inc ebx
cmp ebx, 0x10
jb 0x515389
jmp 0x515c89
nop
mov edx, dword [esp + 0x1a4]
cmp edx, 1
jl 0x515c47
mov eax, dword [esp + 0x19c]
mov dword [eax], 1
mov ecx, dword [esp + 0x1b8]
lea ebx, [ecx - 1]
mov dword [esp + 0x60], ebx
mov dword [esp + 0xac], eax
mov eax, 1
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0xac]
jmp 0x515baa
mov dword [esp + 0x54], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0xd0], ebx
mov edi, dword [esp + 0x50]
shr edi, 0x1c
lea edi, [edi + edi*2]
mov esi, dword [esp + edi*4 + 0xd8]
mov dword [esp + 0xc8], esi
mov esi, dword [esp + edi*4 + 0xdc]
mov edi, dword [esp + edi*4 + 0xe0]
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 + 0xc8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call fcn.00510610
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc0], 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 + 0xd0]
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 + 0xd4]
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 + 0x1c0]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c4]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1c8]
mov dword [esp + 0x2c], esi
call fcn.00511ff0
mov eax, dword [esp + 0x5c]
add eax, 4
mov dword [esp + 0x5c], eax
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov ebp, 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 + 0x4c], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x54], eax
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x1b8]
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x5c]
cmp edx, 0x20
jge 0x515b88
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
je 0x515b67
mov dword [esp + 0xcc], eax
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x14], edx
call fcn.00511650
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc0], 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 + 0xcc]
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 + 0xd4]
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 + 0x1c0]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c4]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1c8]
mov dword [esp + 0x2c], esi
call fcn.00511ff0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc8], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00511650
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc4], 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 + 0xc8]
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 + 0xc0]
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 + 0x1c0]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c4]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1c8]
mov dword [esp + 0x2c], esi
call fcn.00511ff0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc0], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00511650
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc8], 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 + 0xc0]
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 + 0x6c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c0]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c4]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1c8]
mov dword [esp + 0x2c], esi
call fcn.00511ff0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc0], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00511650
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc4], 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 + 0xc0]
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 + 0x74]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c0]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c4]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1c8]
mov dword [esp + 0x2c], esi
call fcn.00511ff0
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 + 0x6c]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0xd4], edi
mov edi, dword [esp + 0x6c]
jmp 0x5156da
test edx, edx
jne 0x515860
mov ebx, eax
mov edx, ebp
mov ecx, esi
mov eax, edi
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
jmp 0x5156da
dec ebx
mov edx, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0xa4]
test ebx, ebx
jl 0x515c08
cmp ebx, ecx
jae 0x515c82
mov dword [esp + 0x1a4], edx
mov dword [esp + 0x78], ebx
mov edx, dword [esp + 0x1b4]
mov edx, dword [edx + ebx*4]
mov dword [esp + 0x9c], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1a4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
jmp 0x515843
mov dword [esp], eax
mov eax, dword [esp + 0x1a0]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0050ed70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1cc], eax
mov dword [esp + 0x1d0], ecx
mov dword [esp + 0x1d4], edx
add esp, 0x198
ret
lea eax, [0x633500]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00442930
mov eax, dword [esp + 0xc]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0xd0]
mov edx, 1
jmp 0x5156a7
mov eax, ebx
call fcn.0045ad60
mov eax, ebx
mov ecx, 0x10
call fcn.0045ad60
mov eax, ebx
mov ecx, 0x10
call fcn.0045ad60
mov ecx, 0x10
call fcn.0045ad60
nop
call fcn.00459790
jmp fcn.005152e0