Function at 0x4769b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545736
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x868], 0
cmp dword [ebp + 0xc], 0
je 0x476a48
cmp dword [ebp + 0x10], 0
je 0x476a48
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x860], 0x476a48
mov dword [ebp - 0x864], 0x476dd1
mov eax, dword [ebp - 0x864]
sub eax, dword [ebp - 0x860]
mov dword [ebp - 0x86c], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x86c]
mov ecx, dword [ebp - 0x860]
call fcn.004753c0
add esp, 4
jmp 0x476dd1
nop
inc eax
nop
nop
dec eax
nop
inc eax
dec eax
push 0x104
lea edx, [ebp - 0x220]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x476a87
push 0
push str.Error
push str.Failed_to_get_process_path__n
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x476dd1
lea ecx, [ebp - 0x840]
call fcn.004022c0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x220]
call fcn.004c12a0
push 0x100
lea eax, [ebp - 0x628]
push eax
push 0x100
lea ecx, [ebp - 0x828]
push ecx
push 0x104
lea edx, [ebp - 0x428]
push edx
push 3
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x840]
call fcn.00402210
push eax
call fcn.00501d6b
add esp, 0x24
lea ecx, [ebp - 0x828]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.00401fc0
lea edx, [ebp - 0x628]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.0040e370
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00401fc0
lea ecx, [ebp - 0x428]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.0040e370
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.00401fc0
lea eax, [ebp - 0x428]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x476c02
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x878], 0xc
lea ecx, [ebp - 0x428]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7c
call fcn.00401fc0
mov ecx, dword [ebp + 8]
add ecx, 0x7c
call fcn.00401b20
sub eax, 1
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x7c
call fcn.00411470
movzx edx, word [eax]
cmp edx, 0x5c
je 0x476bb8
push 0x5c
mov ecx, dword [ebp + 8]
add ecx, 0x7c
call fcn.004123b0
push str.CybertronPrivacy_Drive
mov ecx, dword [ebp + 8]
add ecx, 0x7c
call fcn.0040e370
mov eax, dword [ebp + 8]
add eax, 0x7c
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x94
call fcn.00403c40
push 0x57bb70
mov ecx, dword [ebp + 8]
add ecx, 0x94
call fcn.0040e370
push 0x57bb58
mov ecx, dword [ebp + 8]
add ecx, 0x7c
call fcn.0040e370
jmp 0x476c2d
push 0
push str.Error
push str.Failed_to_get_APP_DATA_path__n
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00402220
jmp 0x476dd1
push str.Install
push 2
push 0
mov ecx, 0x5be2fc
call fcn.00411d00
test eax, eax
jne 0x476d30
push str.Uninstall
push 2
push 0
mov ecx, 0x5be2fc
call fcn.00411d00
test eax, eax
jne 0x476d30
push str.StartService
push 2
push 0
mov ecx, 0x5be2fc
call fcn.00411d00
test eax, eax
jne 0x476d30
lea ecx, [ebp - 0x85c]
call fcn.00401760
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00402210
push eax
push str._sPortable.xml
lea ecx, [ebp - 0x85c]
push ecx
call fcn.00401a00
add esp, 0xc
lea ecx, [ebp - 0x858]
call fcn.00402210
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x476d21
mov edx, dword [ebp + 8]
mov dword [edx + 8], 1
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00402210
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x7c
call fcn.00401fc0
push str.Config.xml
mov ecx, dword [ebp + 8]
add ecx, 0x7c
call fcn.0040e370
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00402210
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x94
call fcn.00401fc0
push str.UserData.dat
mov ecx, dword [ebp + 8]
add ecx, 0x94
call fcn.0040e370
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x85c]
call fcn.004021a0
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x476d6e
push 0
push str.Error
push str.Failed_to_get_Windows_path__n
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00402220
jmp 0x476dd1
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0xac
call fcn.00401fc0
mov ecx, 0x5bddc4
call fcn.00476920
test eax, eax
jne 0x476da5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00402220
jmp 0x476dd1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00402220
mov dword [ebp - 0x868], 1
xor edx, edx
jne 0x476a50
nop
inc eax
nop
nop
dec eax
nop
inc eax
dec eax
mov eax, dword [ebp - 0x868]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret