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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a5d1e
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.004a6140
movzx eax, byte [esp + 8]
test al, al
je 0x4a5c64
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.004a6cf0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.004a5d30
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
cmp edx, ecx
ja 0x4a5d17
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], ecx
sub ecx, edx
mov ebp, ecx
neg ecx
sar ecx, 0x1f
and edx, ecx
lea ecx, [eax + edx]
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.004a6140
movzx eax, byte [esp + 8]
test al, al
je 0x4a5bfc
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
je 0x4a5ba2
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004a59d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test edx, edx
jne 0x4a5b7e
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ecx
xor ebp, ebp
xor esi, esi
xor edi, edi
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
jmp 0x4a5af6
mov esi, dword [esp + 0x3c]
inc esi
mov edi, edx
mov dword [esp + 0x58], eax
mov edx, ebx
mov ebx, ebp
mov eax, dword [esp + 0x48]
mov ebp, esi
mov esi, ecx
mov ecx, dword [esp + 0x30]
cmp ebp, ecx
jge 0x4a5b62
mov dword [esp + 0x3c], ebp
lea ecx, [eax + ebp*8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.004a5e80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
test ebx, ebx
je 0x4a5adb
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
add esp, 0x5c
ret
mov eax, dword [esp + 0x58]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ebx
add esp, 0x5c
ret
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00449d90
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4a5bcc
mov eax, dword [esp + 0x38]
jmp 0x4a5a95
mov eax, dword [0x5c2df8]
mov ecx, dword [0x5c2dfc]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x5c
ret
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004a5e80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
add esp, 0x5c
ret
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.004824b0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a5ceb
lea eax, [0x4fc140]
mov dword [esp], eax
call fcn.0040d050
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ecx
mov ecx, dword [0x5d3b70]
test ecx, ecx
jne 0x4a5cd1
mov ecx, dword [esp + 0x60]
mov dword [eax], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 1
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x5c
ret
mov dword [esp + 0x54], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.0040d8c0
mov eax, dword [esp + 0x54]
jmp 0x4a5ca9
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x5c
ret
call fcn.004243c0
ud2
call fcn.004486e0
jmp fcn.004a59d0