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

Disassembly:
mov ecx, dword [0x5efcb0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x465177
sub esp, 0x64
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 0x20]
test eax, eax
jbe 0x46516d
shr eax, 2
test eax, eax
jl 0x465168
mov ecx, 4
mov ebx, eax
mul ecx
jo 0x465163
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x1c]
mov ebp, edx
neg edx
cmp eax, edx
ja 0x465163
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.004654b0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
cmp edx, ecx
jb 0x46515e
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00465190
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.00460cd0
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 0x464fba
mov dword [esp], edx
mov byte [esp + 4], 2
call fcn.00461120
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov byte [esp + 4], 3
call fcn.00461120
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.00461170
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.00461170
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
jmp 0x46509c
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], eax
lea edi, [esp + 0x30]
mov esi, eax
call fcn.00475eda
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.00461170
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.00461170
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.00461170
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.00461170
mov eax, dword [esp + 0x5c]
add eax, 0x1c
mov ecx, dword [esp + 0x4c]
dec ecx
test ecx, ecx
jg 0x46500d
xor eax, eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x54]
jmp 0x4650bb
mov ebp, dword [esp + 0x28]
lea eax, [ebp + 1]
cmp eax, 4
jge 0x465145
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x68]
lea edx, [ecx + eax*4]
mov dword [esp], edx
call fcn.0047a7b0
mov eax, dword [esp + 4]
test eax, eax
jne 0x4650f9
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x54]
jmp 0x4650b4
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.00464ea0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x4650b4
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
add esp, 0x64
ret
call fcn.00475870
call fcn.00467fd0
call fcn.00467fd0
xor eax, eax
mov ecx, eax
call fcn.00475830
nop
call fcn.004743b0
jmp fcn.00464ea0