Function at 0x4772bf
Capabilities:
Get common file path

Disassembly:
push 0xd84
mov eax, 0x46ac21
call fcn.0046791c
mov ebx, edx
mov dword [ebp - 0xd84], ebx
mov edi, ecx
lea ecx, [ebp - 0xd74]
xor esi, esi
call fcn.004233d4
mov dword [ebp - 4], 1
and dword [ebp - 0xd8c], esi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
lea ecx, [ebp - 0xd8c]
push ecx
push 8
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
jne 0x4773a6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x477325
movzx esi, si
or esi, 0x80070000
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0xd80], eax
mov dword [ebp - 0xd7c], eax
lea eax, [ebp - 0x218]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xd80]
call fcn.004358fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd80]
push dword [edi + 8]
push dword [edi + 4]
push 0x7d0
call fcn.0043598b
push 0x410e34
mov ecx, edi
mov dword [edi + 0xc], eax
call fcn.004338e0
lea ecx, [ebp - 0xd80]
mov byte [ebp - 4], 1
call fcn.0042b397
push 0x20a
lea eax, [ebp - 0x834]
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [ebp - 0xd90], 0x105
test esi, esi
js 0x477433
lea eax, [ebp - 0xd90]
push eax
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0xd8c]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x4774de
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0xd74]
call fcn.00433763
mov ebx, dword [ebp - 0xd68]
test ebx, ebx
je 0x47742d
lea ecx, [ebp - 0xd74]
call fcn.00435972
mov ecx, eax
call fcn.00431275
test eax, eax
je 0x47742d
lea eax, [ebx - 1]
push eax
lea ecx, [ebp - 0xd74]
call fcn.00425195
mov ebx, dword [ebp - 0xd84]
lea ecx, [ebp - 0xd8c]
call fcn.0041c7e7
lea ecx, [ebp - 0xce0]
call fcn.004233d4
push 0x20a
lea eax, [ebp - 0xa40]
mov byte [ebp - 4], 3
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [ebp - 0xd90], 0x105
test esi, esi
js 0x47760d
lea eax, [ebp - 0xd90]
push eax
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x477578
lea eax, [ebp - 0xa40]
push eax
lea ecx, [ebp - 0xce0]
call fcn.00433763
mov esi, dword [ebp - 0xcd4]
test esi, esi
je 0x4774d2
lea ecx, [ebp - 0xce0]
call fcn.00435972
mov ecx, eax
call fcn.00431275
test eax, eax
je 0x4774d2
lea eax, [esi - 1]
push eax
lea ecx, [ebp - 0xce0]
call fcn.00425195
mov byte [ebp - 0xd75], 0
jmp 0x47761c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4774f3
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp + 4]
mov edx, 0x300
push esi
push 0x406418
call fcn.00478527
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0xd80], eax
mov dword [ebp - 0xd7c], eax
lea eax, [ebp - 0x420]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xd80]
call fcn.004358fc
push dword [edi + 8]
lea ecx, [ebp - 0xd80]
push dword [edi + 4]
push 0x7dc
call fcn.0043598b
lea ecx, [ebp - 0xd80]
mov dword [edi + 0xc], eax
call fcn.0042b397
jmp 0x477433
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x47758d
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp + 4]
mov edx, 0x31d
push esi
push 0x406418
call fcn.00478527
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0xd88], eax
mov dword [ebp - 0xd84], eax
lea eax, [ebp - 0x628]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xd88]
call fcn.004358fc
push dword [edi + 8]
lea ecx, [ebp - 0xd88]
push dword [edi + 4]
push 0x7db
call fcn.0043598b
lea ecx, [ebp - 0xd88]
mov dword [edi + 0xc], eax
call fcn.0042b397
mov byte [ebp - 0xd75], 0
test esi, esi
js 0x4776f6
push 0x20a
lea eax, [ebp - 0xc4c]
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc4c]
push eax
push 1
push 0
push 0x401c
push 0
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov ecx, dword [ebp + 4]
test eax, eax
jns 0x477666
push eax
push 0x406418
mov edx, 0x32b
call fcn.00475b3c
jmp 0x4776f6
lea eax, [ebp - 0xc4c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.0043333c
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xa4]
push 0xffffffffffffffff
push dword [ebp - 0x98]
mov esi, dword [eax + 0xc]
mov ecx, esi
push 0x410e3c
call dword [0x4a47a8]
lea ecx, [ebp - 0xa4]
call esi
push ebx
push ecx
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xd74]
push eax
lea edx, [ebp - 0xce0]
lea ecx, [ebp - 0xd75]
call fcn.00476eaa
test eax, eax
jns 0x4776da
mov ecx, dword [ebp + 4]
mov edx, 0x335
push eax
push 0x406418
call fcn.00475b3c
lea eax, [ebp - 0x94]
mov dword [ebp - 0xa4], 0x401604
push eax
lea ecx, [ebp - 0xa4]
call fcn.00434927
lea eax, [ebp - 0xcd0]
mov dword [ebp - 0xce0], 0x401604
push eax
lea ecx, [ebp - 0xce0]
call fcn.00434927
lea eax, [ebp - 0xd64]
mov dword [ebp - fcn.004218f0], 0x401b08
push eax
lea ecx, [ebp - 0xd74]
mov dword [ebp - 0xd74], 0x401604
call fcn.00434927
xor eax, eax
call fcn.004678b9
ret