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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ca441
sub esp, 0x44
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
call fcn.004cb220
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x4ca427
mov dword [esp + 0x28], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
movzx ebx, byte [esp + 0x64]
mov byte [esp + 0xc], bl
call fcn.004cb450
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x4ca3ec
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], edx
call fcn.004bda10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4ca3b1
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4ca30d
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x4ca311
mov ebx, dword [esp + 0x5c]
cmp ebx, 1
je 0x4ca1d1
cmp ebx, 2
je 0x4ca279
cmp ebx, 5
jne 0x4ca311
call fcn.004c7400
mov eax, dword [esp]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
call fcn.004cab40
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x4ca257
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004bd7d0
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], eax
add esp, 0x44
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x44
ret
mov dword [esp], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
call fcn.004cae20
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x4ca2eb
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004bd7d0
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x84], eax
add esp, 0x44
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x44
ret
mov edx, dword [esp + 0x70]
mov dword [esp], eax
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
call fcn.004ca650
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
je 0x4ca38f
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004bd7d0
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x84], eax
add esp, 0x44
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x44
ret
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ebx
mov edx, dword [0x5e0a88]
mov eax, dword [edx]
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call eax
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x84], eax
add esp, 0x44
ret
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov edx, dword [0x5e0a88]
mov eax, dword [edx]
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call eax
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x84], eax
add esp, 0x44
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ebx
add esp, 0x44
ret
call fcn.00464070
jmp fcn.004ca0d0