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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d732b
sub esp, 0x54
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 8], edx
call fcn.004d85b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test ecx, ecx
jne 0x4d730e
mov dword [esp + 0x2c], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
movzx ebx, byte [esp + 0x74]
mov byte [esp + 0xc], bl
call fcn.004d8820
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x4d72d0
nop
mov eax, dword [esp + 0x6c]
cmp eax, 2
je 0x4d72c9
cmp eax, 3
setne cl
mov byte [esp + 0x2b], cl
lea eax, [0x567a60]
mov dword [esp], eax
call fcn.0040b1d0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x6c]
cmp ecx, 1
sete dl
mov byte [eax + 0x12d], dl
movzx edx, byte [esp + 0x2b]
mov byte [eax + 0x12e], dl
mov edx, dword [esp + 0x68]
mov dword [eax + 0x134], edx
mov dword [eax + 0x138], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 0x144], edx
mov edx, dword [0x795b00]
test edx, edx
jne 0x4d72b1
mov edx, dword [esp + 0x60]
mov dword [eax + 0x140], edx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x78]
test edx, edx
je 0x4d72a5
mov ebx, dword [esp + 0x80]
test ebx, ebx
je 0x4d7163
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 dword [esp + 0xc], edx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x1c], ecx
call fcn.004d7400
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
test eax, eax
je 0x4d713e
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004cc340
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
add esp, 0x54
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x54
ret
cmp ecx, 1
jne 0x4d7209
call fcn.004d5c40
mov eax, dword [esp]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
call fcn.004d7bd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x4d71e4
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004cc340
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x94], eax
add esp, 0x54
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x54
ret
cmp ecx, 2
je 0x4d721c
cmp ecx, 5
je 0x4d716c
jmp 0x4d70bb
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xc], ecx
call fcn.004d8050
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x4d7280
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004cc340
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x94], eax
add esp, 0x54
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x54
ret
mov ebx, dword [esp + 0x80]
jmp 0x4d70bb
lea edi, [eax + 0x140]
mov edx, eax
mov eax, dword [esp + 0x60]
call fcn.0045a0f0
mov eax, edx
jmp 0x4d709c
xor ecx, ecx
jmp 0x4d7032
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], ecx
mov edx, dword [0x75940c]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [edx]
call eax
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x94], eax
add esp, 0x54
ret
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
add esp, 0x54
ret
call fcn.00458ba0
jmp fcn.004d6fa0