Function at 0x503d10
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 0x5046d2
sub esp, 0x198
lea edi, [esp + 0xd8]
xor eax, eax
call fcn.00450fa0
mov ecx, dword [0x8a85b0]
mov edx, dword [0x8a85b4]
mov ebx, dword [0x8a85b8]
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 0x50406b
mov dword [esp + 0x78], edi
lea eax, [esp + 0xd8]
mov ecx, dword [eax + edi*4]
mov ebx, dword [esp + edi*4 + 0xdc]
mov ebp, dword [esp + edi*4 + 0xe0]
mov esi, dword [eax + edx*4]
mov eax, dword [esp + edx*4 + 0xdc]
mov edx, dword [esp + edx*4 + 0xe0]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.00501040
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x78]
lea ebp, [esp + 0xd8]
mov dword [ebp + ebx*4 + 4], ecx
mov dword [ebp + ebx*4 + 8], edx
mov dword [ebp + ebx*4], eax
mov esi, dword [esp + 0xd0]
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 + 0xd4]
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 + 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.005019d0
mov eax, dword [esp + 0x30]
mov dword [esp + 0xbc], 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 + 0x78]
lea edx, [esp + 0xd8]
mov ecx, dword [edx + edi*4]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + edi*4 + 0xdc]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + edi*4 + 0xe0]
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 + 0xe4]
mov ecx, dword [esp + edi*4 + 0xe8]
mov eax, dword [esp + edi*4 + 0xec]
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 + 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.00500040
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.005019d0
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 + 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 + 0x48]
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 + 0x48]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x48], ebp
mov dword [esp + 0xd0], esi
mov dword [esp + 0x4c], edi
cmp eax, 0x10
jge 0x5040b5
mov dword [esp + 0x64], eax
shr eax, 0x1f
mov ebx, dword [esp + 0x64]
add eax, ebx
sar eax, 1
cmp eax, 0x10
jae 0x5046c7
lea edx, [eax + eax*2]
cmp ebx, 0x10
jae 0x5046bb
lea edi, [ebx + ebx*2]
inc ebx
cmp ebx, 0x10
jb 0x503db9
jmp 0x5046af
nop
mov edx, dword [esp + 0x1a4]
cmp edx, 1
jl 0x50466d
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 0x5045d0
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], esi
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x58], edi
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.00500040
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.005019d0
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 + 0x4c], ebx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x58], eax
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x54], 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 0x5045ae
mov ecx, dword [esp + 0x60]
cmp ebx, ecx
je 0x50458d
mov dword [esp + 0xcc], eax
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
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.00501040
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.005019d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xc8], 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.00501040
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.005019d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xc0], 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.00501040
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.005019d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xc0], 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.00501040
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.005019d0
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 + 0xc4]
mov dword [esp + 0xd4], edi
mov edi, dword [esp + 0x68]
jmp 0x504100
test edx, edx
jne 0x504286
mov ebx, eax
mov edx, edi
mov ecx, ebp
mov eax, esi
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
jmp 0x504100
dec ebx
mov edx, dword [esp + 0x60]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1a0], eax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0xa4]
test ebx, ebx
jl 0x50462e
cmp ebx, ecx
jae 0x5046a8
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 + 0x1a0]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x1a4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x9c]
jmp 0x504269
mov dword [esp], eax
mov eax, dword [esp + 0x1a0]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fe7c0
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, [0x659340]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0043c2b0
mov eax, dword [esp + 0xc]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0xd0]
mov edi, dword [esp + 0x4c]
mov edx, 1
jmp 0x5040cd
mov eax, ebx
call fcn.00450da0
mov eax, ebx
mov ecx, 0x10
call fcn.00450da0
mov eax, ebx
mov ecx, 0x10
call fcn.00450da0
mov ecx, 0x10
call fcn.00450da0
nop
call fcn.0044f4e0
jmp fcn.00503d10