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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ca181
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.004caf60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x4ca167
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.004cb190
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x4ca12c
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.004bd580
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4ca0f1
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4ca04d
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x4ca051
mov ebx, dword [esp + 0x5c]
cmp ebx, 1
je 0x4c9f11
cmp ebx, 2
je 0x4c9fb9
cmp ebx, 5
jne 0x4ca051
call fcn.004c7140
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.004ca880
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x4c9f97
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004bd340
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.004cab60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x4ca02b
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004bd340
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.004ca390
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
je 0x4ca0cf
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004bd340
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 [0x5dfaa8]
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 [0x5dfaa8]
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.004c9e10