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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d998e
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.004dadf0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x4d9971
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.004db060
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x4d9933
nop
mov eax, dword [esp + 0x60]
cmp eax, 2
je 0x4d9688
cmp eax, 3
setne cl
jmp 0x4d968a
xor ecx, ecx
mov byte [esp + 0x2b], cl
cmp eax, 1
sete dl
mov byte [esp + 0x2a], dl
lea ebx, [0x5716e0]
mov dword [esp], ebx
call fcn.0040b7f0
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 [0x714170]
test edx, edx
jne 0x4d96fb
mov edx, dword [esp + 0x54]
mov dword [eax + 0x140], edx
jmp 0x4d970e
lea edi, [eax + 0x140]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.00461af0
mov eax, edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x4d9889
mov ebx, dword [esp + 0x74]
test ebx, ebx
jne 0x4d988d
cmp ecx, 1
je 0x4d9741
cmp ecx, 2
je 0x4d97ef
cmp ecx, 5
jne 0x4d988d
call fcn.004d6d50
mov eax, dword [esp]
mov ecx, dword [esp + 0x30]
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.004da370
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x4d97ca
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004cb070
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
add esp, 0x48
ret
mov eax, dword [esp + 0x30]
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.004da840
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x4d9864
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004cb070
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 + 0x30]
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.004d99a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
je 0x4d990e
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004cb070
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 + 0x30]
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 [0x6e8d14]
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.004606e0
jmp fcn.004d95f0