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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d3b86
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
cmp eax, 4
jne 0x4d38a9
mov ecx, dword [esp + 0x58]
cmp dword [ecx], 0x78696e75
jne 0x4d3b56
mov edx, 1
jmp 0x4d3918
cmp eax, 8
jne 0x4d38d2
mov ecx, dword [esp + 0x58]
cmp dword [ecx], 0x78696e75
jne 0x4d3b56
cmp dword [ecx + 4], 0x6d617267
jne 0x4d3b56
mov edx, 2
jmp 0x4d3918
cmp eax, 0xa
je 0x4d38e0
mov ecx, dword [esp + 0x58]
jmp 0x4d3b56
mov eax, dword [esp + 0x58]
mov dword [esp], eax
lea ecx, [0x50bf1a]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xa
call fcn.00403490
movzx eax, byte [esp + 0xc]
test al, al
je 0x4d3b4e
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, 5
mov ebx, dword [esp + 0x74]
cmp ebx, 4
jne 0x4d3a17
mov ebp, dword [esp + 0x70]
cmp dword [ebp], 0x6c616964
jne 0x4d3af2
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x60]
test ebx, ebx
jne 0x4d3948
mov ebp, dword [esp + 0x64]
jmp 0x4d3983
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x4d396f
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
xor ebx, ebx
xor ebp, ebp
jmp 0x4d3983
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
test esi, esi
jne 0x4d3991
mov edi, dword [esp + 0x6c]
jmp 0x4d39e4
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x4d39c8
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
xor esi, esi
xor edi, edi
jmp 0x4d39e4
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
test esi, esi
jne 0x4d3a4d
cmp edx, 2
jne 0x4d39f1
test ebx, ebx
jne 0x4d3a4d
mov eax, dword [0x5e9db8]
mov ecx, dword [0x5e9dbc]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x4c
ret
cmp ebx, 6
jne 0x4d3aee
mov ebp, dword [esp + 0x70]
cmp dword [ebp], 0x7473696c
jne 0x4d3af2
cmp word [ebp + 4], 0x6e65
jne 0x4d3af2
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x50]
mov dword [esp], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x30], eax
call fcn.004d0670
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
test ecx, ecx
je 0x4d3ad0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ebx
add esp, 0x4c
ret
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x4c
ret
mov ebp, dword [esp + 0x70]
mov dword [esp], 0
lea eax, [0x50d2ba]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.004535e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0046e6f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x4c
ret
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040a630
mov eax, dword [esp + 8]
mov dword [esp + 0x7c], 0
lea ecx, [0x51f9e0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x4c
ret
call fcn.00467570
jmp fcn.004d3870