Function at 0x4d3650
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5623a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x46], 0
xorps xmm0, xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
movlpd qword [ebp - 0x20], xmm0
jne 0x4d3699
cmp word [edi + 0x36], 0
jbe 0x4d380d
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x57dd34
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x4d36f2
call ebx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov dword [ebp - 0x18], 0x57dd34
call eax
mov dword [ebp - 0x14], 0
jmp 0x4d372e
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x4d376a
call ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x57dd34
test esi, esi
je 0x4d372b
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x4d378b
cmp byte [edi + 0x2c], 0
je 0x4d3754
cmp dword [edi + 0x30], 0
je 0x4d3754
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
call dword [eax + 4]
mov ecx, dword [edi + 0x30]
push 0
push esi
push 0
mov edx, dword [ecx]
call dword [edx + 0x24]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x57dd34
test esi, esi
je 0x4d378b
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov dword [ebp - 0x14], 0
lea esi, [edi + 0x48]
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x4d37d9
call ebx
cmp byte [edi + 0x2c], 0
mov esi, eax
je 0x4d3754
cmp dword [edi + 0x30], 0
je 0x4d3754
mov edx, dword [edi + 0x28]
lea ecx, [edi + 0x28]
call dword [edx + 4]
mov ecx, dword [edi + 0x30]
push 0
push esi
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x4d380d
call ebx
lea ecx, [edi + 0x28]
mov esi, eax
push ecx
push esi
push ecx
call fcn.004d6f90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [edi + 0x36], 0
lea eax, [edi + 0x36]
jbe 0x4d3859
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
push ecx
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4d37e8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x4d3859
mov eax, 0xe0000013
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.0040a1d0
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 5
push str..part
call fcn.00416df0
push 0
xor dl, dl
lea ecx, [ebp - 0x10]
call fcn.00494c80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d38aa
lea ecx, [edi + 0x28]
push ecx
push ebx
push ecx
call fcn.004d6f90
mov esi, dword [ebp - 0x10]
jmp 0x4d3a4a
cmp byte [edi + 0x34], 0
mov esi, dword [ebp - 0x10]
je 0x4d3967
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d3967
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
call fcn.004d2f10
mov byte [ebp - 4], 4
sub esp, 8
lea ecx, [ebp - 0x58]
push str.S_1_1_0
call fcn.004d3100
sub esp, 8
lea ecx, [ebp - 0x58]
push 0x59028c
call fcn.004d3100
lea ecx, [ebp - 0x58]
call fcn.004d3540
push 0
push 0x80
xor edx, edx
mov dword [ebp - 0x28], eax
push 2
test eax, eax
lea ecx, [ebp - 0x2c]
cmove ecx, edx
push ecx
push edx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x4d3940
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004d2fb0
test ebx, ebx
je 0x4d3967
lea ecx, [edi + 0x28]
push ecx
push ebx
push ecx
call fcn.004d6f90
jmp 0x4d3a4a
xor eax, eax
mov ecx, 2
cmp byte [edi + 0x24], al
cmovne eax, ecx
push eax
mov eax, dword [ebp + 8]
push 0
push edi
push 0x4d6e80
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4d39c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov ebx, eax
je 0x4d39bb
cmp byte [edi + 4], 0
je 0x4d39bb
cmp dword [edi + 8], 0
je 0x4d39bb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [edi + 8]
push 0
push ebx
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
test ebx, ebx
je 0x4d39f7
jmp 0x4d3a4a
cmp byte [edi + 0x1c], 0
je 0x4d39f7
cmp byte [edi + 0x1d], 0
je 0x4d39f7
cmp byte [edi + 4], 0
mov ebx, dword [edi + 0x20]
je 0x4d39f7
cmp byte [edi + 5], 0
je 0x4d39f7
cmp dword [edi + 8], 0
je 0x4d39f7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [edi + 8]
push 0
push ebx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [eax]
call ebx
mov eax, dword [ebp + 0xc]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4d3a3d
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4d3a3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x28]
mov ebx, eax
push ecx
push ebx
push ecx
call fcn.004d6f90
jmp 0x4d3a4a
push esi
call ebx
lea ecx, [edi + 0x28]
push ecx
push 1
call fcn.004d6f60
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d3a69
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8