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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51127e
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
call fcn.00511f00
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x51125d
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 8], edx
movzx ebx, byte [esp + 0x70]
mov byte [esp + 0xc], bl
call fcn.00512140
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x51121b
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x10], edx
call fcn.00503fd0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5111d9
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x51112d
mov edx, dword [esp + 0x7c]
test edx, edx
jne 0x511131
mov ebx, dword [esp + 0x68]
cmp ebx, 1
je 0x510fe7
cmp ebx, 2
je 0x511094
cmp ebx, 5
jne 0x511131
call fcn.00515f50
mov eax, dword [esp]
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x18], eax
call fcn.00511890
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x51106f
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.00503d10
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x90], eax
add esp, 0x50
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x50
ret
mov dword [esp], eax
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x14], ecx
call fcn.00511b30
mov eax, dword [esp + 0x18]
test eax, eax
je 0x511108
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.00503d10
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x90], eax
add esp, 0x50
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x50
ret
mov edx, dword [esp + 0x7c]
mov dword [esp], eax
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x1c], ecx
call fcn.005113e0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5111b4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.00503d10
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x90], eax
add esp, 0x50
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x50
ret
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov edx, dword [0x8a14cc]
mov ecx, dword [edx]
mov ebx, dword [esp + 0x28]
mov dword [esp], ebx
call ecx
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
add esp, 0x50
ret
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov edx, dword [0x8a14cc]
mov ecx, dword [edx]
mov ebx, dword [esp + 0x28]
mov dword [esp], ebx
call ecx
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
add esp, 0x50
ret
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x50
ret
call fcn.00475ee0
jmp fcn.00510f00