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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d93ce
sub esp, 0x48
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 8], edx
call fcn.004da840
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x4d93b1
mov dword [esp + 0x2c], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
movzx ebx, byte [esp + 0x68]
mov byte [esp + 0xc], bl
call fcn.004daab0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x4d9373
nop
mov eax, dword [esp + 0x60]
cmp eax, 2
je 0x4d90c8
cmp eax, 3
setne cl
jmp 0x4d90ca
xor ecx, ecx
mov byte [esp + 0x2b], cl
cmp eax, 1
sete dl
mov byte [esp + 0x2a], dl
lea ebx, [0x754820]
mov dword [esp], ebx
call fcn.0040b440
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
movzx ecx, byte [esp + 0x2a]
mov byte [eax + 0x12d], cl
movzx ecx, byte [esp + 0x2b]
mov byte [eax + 0x12e], cl
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x134], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x138], ecx
mov edx, dword [esp + 0x58]
mov dword [eax + 0x144], edx
mov edx, dword [0x900e70]
test edx, edx
jne 0x4d913b
mov edx, dword [esp + 0x54]
mov dword [eax + 0x140], edx
jmp 0x4d914e
lea edi, [eax + 0x140]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.00456ac0
mov eax, edx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x4d92c9
mov ebx, dword [esp + 0x74]
test ebx, ebx
jne 0x4d92cd
cmp ecx, 1
je 0x4d9181
cmp ecx, 2
je 0x4d922f
cmp ecx, 5
jne 0x4d92cd
call fcn.004d6410
mov eax, dword [esp]
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
call fcn.004d9dc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x4d920a
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004ca5b0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x88], eax
add esp, 0x48
ret
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x48
ret
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x14], ecx
call fcn.004da290
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x4d92a4
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004ca5b0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x88], eax
add esp, 0x48
ret
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x48
ret
mov ebx, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ecx
call fcn.004d93e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4d934e
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004ca5b0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x88], eax
add esp, 0x48
ret
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x48
ret
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
mov edx, dword [0x706544]
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
call eax
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x88], eax
add esp, 0x48
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ebx
add esp, 0x48
ret
call fcn.00455690
jmp fcn.004d9030