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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d0546
sub esp, 0x58
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x4d0434
xor eax, eax
mov ecx, eax
mov edx, dword [esp + 0x70]
test edx, edx
je 0x4d0403
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [ecx + 0x140]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test ecx, ecx
jne 0x4d03f7
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.004c6630
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
test edx, edx
jne 0x4d03eb
mov edx, dword [esp + 0x5c]
mov byte [edx + 0x148], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov ebx, dword [edx + 0x10]
mov dword [esp], ebx
call fcn.00479430
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x44]
test edx, edx
je 0x4d02cb
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.004d0080
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
call fcn.004d0080
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.004c6560
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x58
ret
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.00479510
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
je 0x4d0379
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.004d0080
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
call fcn.004d0080
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.004c6560
jmp 0x4d02b7
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.004d0080
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
lea edx, [0x508700]
mov dword [esp], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 8], edx
call fcn.0040b3d0
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
call fcn.004c6560
jmp 0x4d02b7
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
add esp, 0x58
ret
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x58
ret
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.004c6440
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x4d0428
mov edx, dword [esp + 0x5c]
xor eax, eax
xor ecx, ecx
jmp 0x4d0206
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x58
ret
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 0x140]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test ecx, ecx
jne 0x4d053a
test ebx, ebx
jne 0x4d0473
mov eax, edx
mov ecx, ebx
jmp 0x4d0169
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.00479350
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x4d04a8
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x4d046a
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
lea eax, [0x50b080]
mov dword [esp], eax
call fcn.0040d710
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov dword [eax + 4], 4
mov ecx, dword [0x5e0f70]
test ecx, ecx
jne 0x4d0522
lea ecx, [0x5246b5]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, dword [0x5e0f70]
lea edx, [eax + 0xc]
test ecx, ecx
jne 0x4d050c
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
lea ecx, [0x540f00]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x58
ret
mov dword [esp], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.0040df80
mov eax, dword [esp + 0x4c]
jmp 0x4d04fa
mov dword [esp], eax
lea ecx, [0x5246b5]
mov dword [esp + 4], ecx
call fcn.0040df80
mov eax, dword [esp + 0x4c]
jmp 0x4d04df
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x58
ret
call fcn.00449fd0
jmp fcn.004d0140