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

Disassembly:
mov ecx, dword [0x52fb9c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x460b15
sub esp, 0x64
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + 0x20]
shr eax, 2
test eax, eax
jl 0x460b0f
mov edx, 4
mov ebx, eax
mul edx
jo 0x460b0a
mov edx, dword [ecx + 0x1c]
mov ebp, edx
neg edx
cmp eax, edx
ja 0x460b0a
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00460e40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
call fcn.00460b20
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
shl eax, 2
lea eax, [eax + eax*4]
shl eax, 1
add eax, 0x16
mov edx, dword [esp + 0x10]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.0045c8a0
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x50], ebx
test al, al
je 0x460966
mov dword [esp], edx
mov byte [esp + 4], 2
call fcn.0045ccf0
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov byte [esp + 4], 3
call fcn.0045ccf0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov ebx, dword [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0045cd20
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
sar ecx, 0x1f
mov dword [esp + 8], ecx
call fcn.0045cd20
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
jmp 0x460a48
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], eax
lea edi, [esp + 0x30]
mov esi, eax
call fcn.0047088a
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
call fcn.0045cd20
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0045cd20
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0045cd20
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0045cd20
mov eax, dword [esp + 0x5c]
add eax, 0x1c
mov ecx, dword [esp + 0x4c]
dec ecx
test ecx, ecx
jg 0x4609b9
xor eax, eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x54]
jmp 0x460a67
mov ebp, dword [esp + 0x28]
lea eax, [ebp + 1]
cmp eax, 4
jge 0x460af1
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x68]
lea edx, [ecx + eax*4]
mov dword [esp], edx
call fcn.00474e00
mov eax, dword [esp + 4]
test eax, eax
jne 0x460aa5
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x54]
jmp 0x460a60
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x18], edx
call fcn.00460860
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x460a60
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
add esp, 0x64
ret
call fcn.00463880
call fcn.00463880
nop
call fcn.0046eed0
jmp fcn.00460860