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

Disassembly:
sub esp, 0x398
mov eax, dword [0x53d9f8]
xor eax, esp
mov dword [esp + 0x394], eax
push ebx
mov ebx, dword [esp + 0x3a4]
push ebp
push edi
mov edi, dword [esp + 0x3a8]
mov ebp, ecx
cmp edi, 0xffffffff
jl 0x4d1f77
mov eax, dword [ebp]
cmp edi, dword [eax + 4]
jge 0x4d1f77
cmp dword [ebp + 4], 0xffffffff
je 0x4d19ab
push eax
call fcn.004d51b0
add esp, 4
push esi
mov dword [ebp + 4], 0xffffffff
cmp edi, dword [ebp + 0x238]
jne 0x4d19e9
cmp edi, 0xffffffff
je 0x4d19e9
lea esi, [ebp + 8]
mov ecx, 0x8c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3a0]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004bee49
add esp, 0x398
ret 8
mov eax, dword [ebp]
cmp edi, 0xffffffff
jne 0x4d1a34
mov eax, dword [eax + 4]
mov dword [ebx], eax
xor eax, eax
mov word [ebx + 4], ax
mov dword [ebx + 0x20c], eax
mov dword [ebx + 0x210], eax
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], eax
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x220], eax
mov dword [ebx + 0x224], eax
mov dword [ebx + 0x228], eax
mov dword [ebx + 0x22c], eax
jmp 0x4d19cc
cmp dword [eax + 0x10], edi
jle 0x4d1a48
push eax
call fcn.004d5230
mov eax, dword [ebp]
add esp, 4
cmp dword [eax + 0x10], edi
jge 0x4d1aa8
mov esi, eax
nop dword [eax]
mov eax, esi
test esi, esi
je 0x4d1aa1
cmp dword [esi + 0x18], 0
je 0x4d1aa1
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x4d1aa1
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
push 0
push 0
push 0
push 0
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push 0
push eax
lea eax, [esi + 0x28]
push eax
push esi
call fcn.004d5ae0
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [ebp]
mov esi, eax
cmp dword [eax + 0x10], edi
jl 0x4d1a50
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [esp + 0xac]
push ecx
push 0
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.004d5ae0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
push dword [ebp]
call fcn.004d58f0
add esp, 0x34
test eax, eax
je 0x4d1af2
mov eax, 0x700
jmp 0x4d19ce
mov eax, dword [ebp]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x4d1b19
cmp byte [ecx + 1], 0
je 0x4d1b4a
mov eax, dword [ecx + 0xc]
add eax, dword [esp + 0x10]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4d1b20
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.004bee3b
mov ecx, dword [ebp]
mov edi, eax
push dword [ecx]
push esi
push 1
push edi
call fcn.004d5040
add esp, 0x14
cmp eax, esi
je 0x4d1b54
push edi
call fcn.004bee44
add esp, 4
mov eax, 0x800
jmp 0x4d19ce
mov eax, dword [ebp]
push 0x104
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
lea eax, [esp + 0x1a0]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0xa4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esp + 0x19c]
movzx eax, word [esi]
test ax, ax
je 0x4d1b98
cmp word [esi + 2], 0x3a
jne 0x4d1b98
add esi, 4
jmp 0x4d1b84
cmp eax, 0x5c
jne 0x4d1ba2
add esi, 2
jmp 0x4d1b84
cmp eax, 0x2f
jne 0x4d1bac
add esi, 2
jmp 0x4d1b84
push 0x4f48a4
push esi
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x4d1bc3
lea esi, [eax + 8]
jmp 0x4d1b84
push str..._
push esi
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x4d1bda
lea esi, [eax + 8]
jmp 0x4d1b84
push 0x4f4898
push esi
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x4d1bf1
lea esi, [eax + 8]
jmp 0x4d1b84
push str._.._
push esi
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x4d1c0b
lea esi, [eax + 8]
jmp 0x4d1b84
mov ecx, ebx
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi + 2], ax
test ax, ax
jne 0x4d1c10
mov edx, dword [esp + 0x6c]
mov eax, edx
shr eax, 0x1e
mov ecx, edx
and eax, 0xffffff01
shr ecx, 0x17
mov dword [esp + 0x10], eax
not cl
mov eax, dword [esp + 0x38]
and cl, 1
shr eax, 8
mov byte [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x1c], 1
test eax, eax
je 0x4d1c65
cmp eax, 7
je 0x4d1c65
cmp eax, 0xb
je 0x4d1c65
cmp eax, 0xe
jne 0x4d1c9b
mov eax, edx
mov cl, dl
shr eax, 1
and cl, 1
and eax, 0xffffff01
mov dword [esp + 0x24], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [esp + 0x14], eax
mov eax, edx
shr eax, 4
and al, 1
shr edx, 5
mov byte [esp + 0x10], al
and edx, 0xffffff01
jmp 0x4d1c9f
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [ebx + 0x20c], 0
cmp byte [esp + 0x10], al
je 0x4d1cc0
mov dword [ebx + 0x20c], 0x10
mov eax, 0x10
test dl, dl
je 0x4d1ccd
or eax, 0x20
mov dword [ebx + 0x20c], eax
cmp byte [esp + 0x24], 0
je 0x4d1cdd
or eax, 2
mov dword [ebx + 0x20c], eax
test cl, cl
je 0x4d1cea
or eax, 1
mov dword [ebx + 0x20c], eax
cmp byte [esp + 0x14], 0
je 0x4d1cfa
or eax, 4
mov dword [ebx + 0x20c], eax
mov edx, dword [esp + 0x48]
mov esi, 0x7bc
mov eax, dword [esp + 0x50]
mov ecx, edx
mov dword [ebx + 0x228], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x22c], eax
shr ecx, 0x10
mov ax, cx
shr ax, 9
add ax, si
mov word [esp + 0x88], ax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov word [esp + 0x8e], cx
mov word [esp + 0x8a], ax
mov ax, dx
shr ax, 0xb
mov word [esp + 0x90], ax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov word [esp + 0x92], ax
xor eax, eax
mov word [esp + 0x96], ax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x8c]
mov word [esp + 0x98], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esp + 0x30]
xor esi, esi
cmp dword [esp + 0x18], 4
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x210], ecx
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], ecx
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x220], ecx
mov dword [ebx + 0x224], eax
jbe 0x4d1f4c
mov byte [esp + 0x12], 0
movzx eax, byte [esi + edi]
mov ecx, 0x518020
mov byte [esp + 0x10], al
movzx eax, byte [esi + edi + 1]
mov byte [esp + 0x11], al
lea eax, [esp + 0x10]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d1e30
test dl, dl
je 0x4d1e2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d1e30
add eax, 2
add ecx, 2
test dl, dl
jne 0x4d1e10
xor eax, eax
jmp 0x4d1e35
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d1e51
movzx eax, byte [esi + edi + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x18]
jb 0x4d1df0
jmp 0x4d1f4c
mov al, byte [esi + edi + 4]
add esi, 5
movzx ecx, al
mov edx, ecx
shr ecx, 2
shr edx, 1
and cl, 1
and edx, 0xffffff01
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
test al, 1
je 0x4d1ebe
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x220], eax
adc edx, 0x19db1de
mov dword [ebx + 0x224], edx
mov edx, dword [esp + 0x1c]
test dl, dl
je 0x4d1f05
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x210], eax
adc edx, 0x19db1de
mov dword [ebx + 0x214], edx
cmp byte [esp + 0x14], 0
je 0x4d1f4c
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x218], eax
adc edx, 0x19db1de
mov dword [ebx + 0x21c], edx
test edi, edi
je 0x4d1f59
push edi
call fcn.004bee44
add esp, 4
mov eax, dword [esp + 0x3ac]
lea edi, [ebp + 8]
mov ecx, 0x8c
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x238], eax
jmp 0x4d19cc
mov eax, 0x10000
jmp 0x4d19cf