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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c9d46
add esp, 0xffffff80
lea eax, [0x4faa09]
mov dword [esp], eax
mov dword [esp + 4], 0x24
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
lea eax, [0x4fa9e5]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x24
call fcn.004c84e0
nop
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
lea edx, [0x4e6640]
mov dword [esp], edx
call fcn.0040b990
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x44]
mov dword [eax], ecx
mov ecx, dword [0x5e99f0]
test ecx, ecx
jne 0x4c9a21
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
jmp 0x4c9a2d
lea edi, [eax + 4]
mov eax, dword [esp + 0x3c]
call fcn.00460a20
lea eax, [0x4e6f00]
mov dword [esp], eax
call fcn.0040b990
mov eax, dword [esp + 4]
lea ecx, [0x522e70]
mov dword [eax], ecx
mov ecx, dword [0x5e99f0]
test ecx, ecx
jne 0x4c9a5a
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
jmp 0x4c9a6a
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x40]
call fcn.00460a20
mov eax, ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x523060]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x48]
test byte [ecx], al
mov edx, dword [esp + 0x48]
mov edx, dword [edx + 0x2c]
mov dword [esp], eax
call edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 0x60]
mov edx, dword [esp + 4]
mov dword [esp], ecx
or edx, 0x20
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 0x68]
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 8]
test al, al
je 0x4c9d32
lea eax, [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], 0x80058000
call fcn.004c8b70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
je 0x4c9d32
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409370
mov eax, dword [esp + 8]
lea ecx, [0x4db020]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
lea eax, [0x4f25a1]
mov dword [esp], eax
mov dword [esp + 4], 9
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0049fe20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
lea edi, [esp + 0x58]
mov edx, eax
xor eax, eax
call fcn.00460bf6
lea eax, [0x4f18fc]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 4
lea eax, [0x4f1c51]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 6
lea eax, [0x4f1efc]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 7
lea eax, [0x4f25f2]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 9
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x7c], eax
lea eax, [0x4f1a45]
mov dword [esp], eax
mov dword [esp + 4], 5
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 5
mov dword [esp + 0x10], 5
call fcn.004ac3e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
lea ecx, [0x4e7d20]
mov dword [esp], ecx
call fcn.0040b990
mov eax, dword [esp + 4]
mov dword [eax + 0xc], 0x8000000
mov ecx, dword [esp + 0x38]
test byte [ecx], al
mov edx, dword [0x5e99f0]
test edx, edx
jne 0x4c9c3c
mov dword [ecx + 0x4c], eax
jmp 0x4c9c44
lea edi, [ecx + 0x4c]
call fcn.00460a20
mov dword [esp], ecx
call fcn.004af240
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
test eax, eax
je 0x4c9cbc
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x10]
mov edx, dword [esp + 0x34]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x28]
mov dword [esp], eax
lea eax, [0x4f6c35]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x16
mov dword [esp + 0x14], 0x10
call fcn.004c33d0
jmp 0x4c9d32
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov dword [esp], 0
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], ecx
call fcn.0044ce00
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, [0x4f4dae]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x11
mov dword [esp + 0x14], 0x40
call fcn.004c33d0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 0x40]
mov dword [esp], ecx
call eax
sub esp, 0xffffff80
ret
call fcn.0045f610
jmp fcn.004c9990