Function at 0x4c4a10
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c282
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b4
push esi
push 0
lea ecx, [ebp - 0xc0]
call fcn.004b90e0
push 0
push 0
push 0
push dword [0x652d58]
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0x200
call fcn.004bcca0
test eax, eax
je 0x4c4aad
push 0
push 0x50daec
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c0]
push eax
push str.DuplicitySharedStorageExe
lea ecx, [ebp - 0xbc]
call fcn.004cbe60
test eax, eax
jne 0x4c4aad
test byte [0x652fc0], 1
je 0x4c4aad
push str.Unable_to_open_registry_n
push 1
push str.GetDestinationFilePath
call fcn.004cb3a0
add esp, 0xc
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x18], 0x200
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c4ac0
sub ecx, edx
sar ecx, 1
je 0x4c509d
lea eax, [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c4f57
test byte [0x652fc0], 4
je 0x4c4b0f
lea eax, [ebp - 0x2c0]
push eax
push str.We_get_the_exe_file:__s_n
push 3
push str.GetDestinationFilePath
call fcn.004cb3a0
add esp, 0x10
push 0x3c
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.004cf600
add esp, 0xc
mov dword [ebp - 0x88], 0x3c
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x84], 0x240
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x80], 0
push eax
mov dword [ebp - 0x7c], str.open
mov dword [ebp - 0x74], str._status
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4c4f57
push 0x7d0
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x4c4f57
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea ecx, [ebp - 0xa4]
call fcn.004b90e0
push 0
push 0
push 0
push dword [0x652d6c]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004bcca0
test eax, eax
je 0x4c4f48
push 0
push 0x50daec
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c0]
push eax
push str.status
lea ecx, [ebp - 0xa0]
call fcn.004cbe60
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c140
push fcn.004036f0
push fcn.0040a860
push 3
push 4
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.004d0e0f
push fcn.004036f0
push fcn.0040a860
push 2
push 4
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
call fcn.004d0e0f
push fcn.004036f0
push fcn.0040a860
push 2
push 4
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
call fcn.004d0e0f
push fcn.004036f0
push fcn.0040a860
push 2
push 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.004d0e0f
push 3
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x535388
call fcn.0040c140
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov byte [ebp - 4], 7
mov esi, esp
push eax
call fcn.0040c810
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x6570a8
mov byte [ebp - 4], 6
call fcn.00431100
push 2
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x524e08
call fcn.0040c140
push ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
mov ecx, esp
push eax
call fcn.0040bfb0
mov ecx, 0x6570a8
mov byte [ebp - 4], 6
call fcn.00431100
push 2
lea eax, [ebp - 0x34]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x524e08
call fcn.0040c140
push ecx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 9
mov ecx, esp
push eax
call fcn.0040bfb0
mov ecx, 0x6570a8
mov byte [ebp - 4], 6
call fcn.00431100
push 2
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x524e08
call fcn.0040c140
push ecx
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
mov ecx, esp
push eax
call fcn.0040bfb0
mov ecx, 0x6570a8
mov byte [ebp - 4], 6
call fcn.00431100
lea eax, [ebp - 0x20]
push 0x53538c
push eax
call fcn.0047afa0
add esp, 8
test al, al
je 0x4c4ee8
lea eax, [ebp - 0x30]
push str.mounted
push eax
call fcn.0047afa0
add esp, 8
test al, al
je 0x4c4ee8
push 0x50f8e4
lea ecx, [ebp - 0x10]
call fcn.0040c140
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00456b10
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.0040c400
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.004036f0
mov eax, dword [0x659214]
test eax, eax
je 0x4c4dca
push eax
call fcn.004d0e0a
add esp, 4
mov ecx, dword [0x652d50]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c4dd3
mov eax, dword [ebp - 0x10]
sub ecx, edx
sar ecx, 1
mov edx, 2
mov eax, dword [eax - 0xc]
add eax, 2
add eax, ecx
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce868
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [0x659214], eax
cmp dword [ecx - 4], 1
jle 0x4c4e27
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040ab30
mov eax, dword [0x659214]
mov ecx, dword [ebp - 0x10]
push ecx
push eax
call fcn.004d1675
mov edx, dword [0x659214]
add esp, 8
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c4e40
push dword [0x652d50]
sub ecx, esi
sar ecx, 1
push 0x5353b0
lea eax, [edx + ecx*2]
push eax
call fcn.004d1675
mov esi, dword [0x659214]
lea ecx, [ebp - 0x10]
add esp, 0xc
call fcn.004036f0
push fcn.004036f0
push 2
push 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.004d0e71
push fcn.004036f0
push 2
push 4
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
call fcn.004d0e71
push fcn.004036f0
push 2
push 4
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
call fcn.004d0e71
push fcn.004036f0
push 3
push 4
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.004d0e71
lea ecx, [ebp - 0x1c]
call fcn.004036f0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.004b93f0
jmp 0x4c50a3
push fcn.004036f0
push 2
push 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.004d0e71
push fcn.004036f0
push 2
push 4
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
call fcn.004d0e71
push fcn.004036f0
push 2
push 4
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
call fcn.004d0e71
push fcn.004036f0
push 3
push 4
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.004d0e71
lea ecx, [ebp - 0x1c]
call fcn.004036f0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.004b93f0
mov eax, dword [0x659214]
test eax, eax
je 0x4c4f69
push eax
call fcn.004d0e0a
add esp, 4
push 0x208
call fcn.004ce868
add esp, 4
mov dword [0x659214], eax
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4c5068
mov edx, dword [0x659214]
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c4fa0
push dword [0x652d54]
sub ecx, esi
sar ecx, 1
push 0x5353b0
lea eax, [edx + ecx*2]
push eax
call fcn.004d1675
add esp, 0xc
lea ecx, [ebp - 0x4c]
push dword [0x659214]
call fcn.004158d0
push 0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
push 0
push eax
call fcn.004c6390
add esp, 0xc
mov byte [ebp - 4], 0
cmp dword [ebp - 0x38], 8
mov esi, eax
jb 0x4c4fff
push dword [ebp - 0x4c]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
test esi, esi
je 0x4c5085
mov edx, dword [0x659214]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c5022
push dword [0x652d50]
sub ecx, esi
sar ecx, 1
push 0x5353b0
lea eax, [edx + ecx*2]
push eax
call fcn.004d1675
add esp, 0xc
test byte [0x652fc0], 2
je 0x4c509d
push dword [0x659214]
push 2
push str.GetDestinationFilePath
call fcn.004cb410
add esp, 0xc
jmp 0x4c509d
test byte [0x652fc0], 2
je 0x4c5085
push str.cant_get_the_user_profile_path_n
push 2
push str.GetDestinationFilePath
call fcn.004cb3a0
add esp, 0xc
push dword [0x659214]
call fcn.004d0e0a
mov dword [0x659214], 0
add esp, 4
mov esi, dword [0x659214]
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.004b93f0
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret