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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d09e1
sub esp, 0x44
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
call fcn.004d17d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x4d09c7
mov dword [esp + 0x28], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
movzx ebx, byte [esp + 0x64]
mov byte [esp + 0xc], bl
call fcn.004d1a00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x4d098c
mov eax, dword [esp + 0x28]
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 edx, dword [esp + 0x50]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], edx
call fcn.004c3880
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4d0951
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4d08ad
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x4d08b1
mov ebx, dword [esp + 0x5c]
cmp ebx, 1
je 0x4d0771
cmp ebx, 2
je 0x4d0819
cmp ebx, 5
jne 0x4d08b1
call fcn.004cd730
mov eax, dword [esp]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
call fcn.004d10f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x4d07f7
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004c3640
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], eax
add esp, 0x44
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x44
ret
mov dword [esp], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
call fcn.004d13d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x4d088b
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004c3640
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x84], eax
add esp, 0x44
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x44
ret
mov edx, dword [esp + 0x70]
mov dword [esp], eax
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
call fcn.004d0c00
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
je 0x4d092f
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004c3640
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x84], eax
add esp, 0x44
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x44
ret
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ebx
mov edx, dword [0x5e69e8]
mov eax, dword [edx]
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call eax
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x84], eax
add esp, 0x44
ret
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov edx, dword [0x5e69e8]
mov eax, dword [edx]
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call eax
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x84], eax
add esp, 0x44
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ebx
add esp, 0x44
ret
call fcn.00467570
jmp fcn.004d0670