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

Disassembly:
mov ecx, dword [0x57fc4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4617f5
sub esp, 0x64
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + 0x20]
shr eax, 2
test eax, eax
jl 0x4617ef
mov edx, 4
mov ebx, eax
mul edx
jo 0x4617ea
mov edx, dword [ecx + 0x1c]
mov ebp, edx
neg edx
cmp eax, edx
ja 0x4617ea
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.00461b20
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.00461800
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.0045d580
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 0x461646
mov dword [esp], edx
mov byte [esp + 4], 2
call fcn.0045d9d0
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov byte [esp + 4], 3
call fcn.0045d9d0
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.0045da00
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.0045da00
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
jmp 0x461728
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], eax
lea edi, [esp + 0x30]
mov esi, eax
call fcn.00471e8a
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.0045da00
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.0045da00
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.0045da00
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.0045da00
mov eax, dword [esp + 0x5c]
add eax, 0x1c
mov ecx, dword [esp + 0x4c]
dec ecx
test ecx, ecx
jg 0x461699
xor eax, eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x54]
jmp 0x461747
mov ebp, dword [esp + 0x28]
lea eax, [ebp + 1]
cmp eax, 4
jge 0x4617d1
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.00476500
mov eax, dword [esp + 4]
test eax, eax
jne 0x461785
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x54]
jmp 0x461740
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.00461540
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x461740
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
add esp, 0x64
ret
call fcn.00464560
call fcn.00464560
nop
call fcn.004704c0
jmp fcn.00461540