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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ca241
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.004cb020
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x4ca227
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.004cb250
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x4ca1ec
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.004bd810
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4ca1b1
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4ca10d
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x4ca111
mov ebx, dword [esp + 0x5c]
cmp ebx, 1
je 0x4c9fd1
cmp ebx, 2
je 0x4ca079
cmp ebx, 5
jne 0x4ca111
call fcn.004c7200
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.004ca940
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x4ca057
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004bd5d0
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.004cac20
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x4ca0eb
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004bd5d0
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.004ca450
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
je 0x4ca18f
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004bd5d0
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 [0x5da7c8]
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 [0x5da7c8]
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.00463e70
jmp fcn.004c9ed0