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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xc]
cmp eax, dword [ecx + 8]
jbe 0x501c0e
sub esp, 0x8c
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x6c], edx
mov ebx, dword [ecx + 0x1c]
mov dword [esp], edx
call ebx
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
nop
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x501bd7
xor edx, edx
test edx, edx
jg 0x50165b
mov byte [esp + 0xa8], 0
add esp, 0x8c
ret
nop
mov edx, dword [esp + 0xa4]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x501bbc
xor ebx, ebx
test ebx, ebx
jle 0x50164c
mov dword [esp + 0x70], eax
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004da1b0
mov eax, dword [esp + 8]
test eax, eax
jl 0x501b97
mov eax, 1
test al, al
jne 0x501b88
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
call fcn.00500c90
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], eax
lea ecx, [0x6497e0]
mov dword [esp], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
call fcn.00407770
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0xc]
test cl, cl
je 0x501b3a
mov ecx, dword [edx + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
call ecx
mov eax, dword [esp + 8]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004d9c20
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], ecx
call fcn.004d9f80
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0xa0]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004d9c20
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], ecx
call fcn.004d9f80
lea eax, [0x649780]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
call fcn.00407770
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0x10]
test cl, cl
je 0x5019b2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x64], edx
nop
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 8]
lea edx, [0x640f20]
mov dword [esp], edx
shl ecx, 2
mov dword [esp + 0x38], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004e3a80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
ja 0x501c07
mov dword [esp + 0x48], eax
nop
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 8]
lea edx, [0x640f20]
mov dword [esp], edx
shl ecx, 2
mov dword [esp + 0x3c], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004e3a80
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
sub eax, ecx
mov edx, eax
neg eax
sar eax, 0x1f
and ecx, eax
mov eax, dword [esp + 0x78]
add eax, ecx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
cmp ecx, ebx
ja 0x501c00
mov ebp, dword [esp + 0x2c]
mov ebp, dword [ebp + 0x10]
mov dword [esp + 0x44], ebp
mov esi, dword [esp + 0x90]
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov ebp, dword [esp + 0x64]
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
sub ebx, ecx
mov eax, ebx
neg ebx
sar ebx, 0x1f
and ecx, ebx
mov edx, dword [esp + 0x74]
add ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
nop
mov edx, dword [eax + 8]
test edx, edx
jne 0x501997
xor edx, edx
test edx, edx
jne 0x50192d
nop
mov edx, dword [ecx + 8]
test edx, edx
jne 0x501982
xor ecx, ecx
test ecx, ecx
je 0x501973
mov dword [esp + 0x54], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], ecx
call fcn.004d9f80
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], eax
call fcn.004da1b0
mov eax, dword [esp + 8]
test eax, eax
sete al
mov byte [esp + 0xa8], al
add esp, 0x8c
ret
mov byte [esp + 0xa8], 0
add esp, 0x8c
ret
movzx ecx, byte [ecx]
test cl, cl
je 0x501990
mov ecx, 0xffffffff
jmp 0x501929
mov ecx, 1
jmp 0x501929
movzx edx, byte [eax]
test dl, dl
je 0x5019a8
mov edx, 0xffffffff
jmp 0x50191b
mov edx, 1
jmp 0x50191b
nop
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 8]
lea edx, [0x640f20]
mov dword [esp], edx
shl ecx, 2
mov dword [esp + 0x34], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004e3a80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
ja 0x501bf9
mov edx, dword [esp + 0x30]
mov ebx, dword [edx + 0x20]
mov ebp, dword [esp + 0x6c]
mov dword [esp], ebp
sub ecx, eax
mov esi, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
call ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
nop
mov edx, dword [esp + 0x5c]
mov ebx, dword [edx + 8]
lea ebp, [0x640f20]
mov dword [esp], ebp
shl ebx, 2
mov dword [esp + 0x40], ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004e3a80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
ja 0x501bf2
mov edx, dword [esp + 0x30]
mov ebx, dword [edx + 0x24]
mov ebp, dword [esp + 0x90]
mov esi, dword [ebp + 8]
mov ebp, dword [ebp + 0xc]
mov edi, dword [esp + 0x6c]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
sub ecx, eax
mov ebp, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 0x10]
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x501911
mov byte [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea eax, [esp + 0x7c]
mov dword [esp], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
call fcn.004dba50
mov eax, dword [esp + 0xc]
jmp 0x501724
mov byte [esp + 0xa8], 0
add esp, 0x8c
ret
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.004da1b0
mov eax, dword [esp + 8]
test eax, eax
setge al
jmp 0x501695
movzx ebx, byte [edx]
test bl, bl
je 0x501bcd
mov ebx, 0xffffffff
jmp 0x501670
mov ebx, 1
jmp 0x501670
movzx edx, byte [ecx]
test dl, dl
je 0x501be8
mov edx, 0xffffffff
jmp 0x501648
mov edx, 1
jmp 0x501648
call fcn.00427250
ud2
call fcn.00427250
ud2
call fcn.00427250
ud2
call fcn.00427250
ud2
call fcn.0044b940
jmp fcn.005015f0