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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d1d8e
sub esp, 0x5c
mov edx, dword [esp + 0x60]
cmp edx, 2
jne 0x4d18f8
mov edx, dword [esp + 0x68]
test edx, edx
jne 0x4d18ce
mov edx, dword [0x7efd28]
mov ebx, dword [0x7efd2c]
mov ebp, dword [0x7efd30]
jmp 0x4d18da
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
cmp ebx, 4
je 0x4d18ef
cmp ebx, 0x10
jne 0x4d1d43
xor eax, eax
jmp 0x4d1d51
mov eax, edx
mov ecx, ebx
jmp 0x4d1c2d
cmp edx, 0x17
jne 0x4d1b8b
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4d1948
mov ecx, dword [0x7efd28]
mov edx, dword [0x7efd2c]
mov ebx, dword [0x7efd30]
mov ebp, dword [esp + 0x64]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.004cd830
movzx eax, byte [esp + 0x18]
test al, al
je 0x4d195c
mov eax, dword [0x7ea250]
mov ecx, dword [0x7ea254]
mov edx, dword [0x7ea258]
jmp 0x4d1968
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
cmp ecx, 4
jne 0x4d1a31
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
movzx ebx, byte [eax]
movzx ebp, byte [eax + 1]
movzx esi, byte [eax + 2]
movzx edi, byte [eax + 3]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov edx, dword [0x7ea260]
mov ecx, dword [0x7ea264]
cmp ecx, 0x10
jl 0x4d19be
mov ecx, 0x10
mov dword [esp + 0x54], eax
lea eax, [esp + 0x34]
cmp edx, eax
je 0x4d1a04
mov byte [esp + 0x1f], bl
xchg ebp, eax
mov byte [esp + 0x1e], al
xchg ebp, eax
xchg esi, eax
mov byte [esp + 0x1d], al
xchg esi, eax
xchg edi, eax
mov byte [esp + 0x1c], al
xchg edi, eax
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0045ef80
movzx ebx, byte [esp + 0x1f]
movzx ebp, byte [esp + 0x1e]
movzx esi, byte [esp + 0x1d]
movzx edi, byte [esp + 0x1c]
mov byte [esp + 0x40], bl
xchg ebp, eax
mov byte [esp + 0x41], al
xchg ebp, eax
xchg esi, eax
mov byte [esp + 0x42], al
xchg esi, eax
xchg edi, eax
mov byte [esp + 0x43], al
xchg edi, eax
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x34]
mov ecx, 0x10
jmp 0x4d1a44
cmp ecx, 0x10
jne 0x4d1a3c
mov ebx, eax
mov ebp, ecx
jmp 0x4d1a44
mov ebx, eax
mov ebp, ecx
xor eax, eax
xor ecx, ecx
test eax, eax
je 0x4d1af5
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ecx
lea eax, [0x7f0240]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
call fcn.004cc140
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea ecx, [0x6247c0]
mov dword [esp], ecx
call fcn.0040b5f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
jl 0x4d1aa7
mov ecx, 0x10
lea edx, [eax + 8]
mov ebx, dword [esp + 0x44]
cmp ebx, edx
je 0x4d1aca
mov dword [esp + 0x4c], eax
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0045ef80
mov eax, dword [esp + 0x4c]
lea ecx, [0x69f7bc]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x5c
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
call fcn.004ccce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [0x61ac20]
mov dword [esp], edx
call fcn.0040b5f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10
lea ecx, [0x64010b]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x816df0]
test ecx, ecx
jne 0x4d1b50
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
jmp 0x4d1b60
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045e5d0
mov eax, ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x69f550]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
call fcn.004ccce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [0x61ac20]
mov dword [esp], edx
call fcn.0040b5f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x16
lea ecx, [0x642bae]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x816df0]
test ecx, ecx
jne 0x4d1bf2
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
jmp 0x4d1c02
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045e5d0
mov eax, ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x69f550]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
test edx, edx
je 0x4d1cad
mov dword [esp + 0x20], ebx
mov dword [esp + 0x48], edx
lea eax, [0x621f00]
mov dword [esp], eax
call fcn.0040b5f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
cmp ecx, 4
jl 0x4d1c5f
mov ecx, 4
lea edx, [eax + 4]
mov ebx, dword [esp + 0x48]
cmp ebx, edx
je 0x4d1c82
mov dword [esp + 0x50], eax
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0045ef80
mov eax, dword [esp + 0x50]
lea ecx, [0x69f7a8]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x5c
ret
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.004ccce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [0x61ac20]
mov dword [esp], edx
call fcn.0040b5f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10
lea ecx, [0x6400fb]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x816df0]
test ecx, ecx
jne 0x4d1d08
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
jmp 0x4d1d18
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045e5d0
mov eax, ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x69f550]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
mov eax, edx
mov ecx, ebx
xor edx, edx
xor ebx, ebx
jmp 0x4d1c2d
inc eax
cmp eax, 0xa
jge 0x4d1d64
jae 0x4d1d83
movzx esi, byte [edx + eax]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4d1d50
jmp 0x4d1d43
cmp byte [edx + 0xa], 0xff
jne 0x4d1d43
cmp byte [edx + 0xb], 0xff
jne 0x4d1d43
lea esi, [edx + 0xc]
mov eax, edx
mov ecx, ebx
mov edx, esi
mov ebx, 4
jmp 0x4d1c2d
mov ecx, 0xa
call fcn.0045e650
nop
call fcn.0045d190
jmp fcn.004d1890