Function at 0x477746
Capabilities:
Get common file path

Disassembly:
push 0x43c
mov eax, 0x46add3
call fcn.0046791c
mov dword [ebp - 0x440], edx
mov esi, ecx
mov dword [ebp - 0x428], esi
call fcn.00424abc
test al, al
jne 0x477773
xor eax, eax
jmp 0x477bb1
lea ecx, [ebp - 0x43c]
call fcn.0043587c
mov ecx, dword [ebp + 4]
mov edi, eax
test edi, edi
jns 0x47780c
push edi
push 0x406418
mov edx, 0x570
call fcn.00475b3c
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004358fc
push dword [esi + 8]
lea ecx, [ebp - 0x42c]
push dword [esi + 4]
push 0x7e1
call fcn.0043598b
lea ecx, [ebp - 0x42c]
mov dword [esi + 0xc], eax
call fcn.0042b397
jmp 0x477baf
xor ebx, ebx
lea ecx, [ebp - 0x421]
mov byte [ebp - 0x421], bl
call fcn.00478ee9
mov ecx, dword [ebp + 4]
mov edi, eax
test edi, edi
jns 0x477838
push edi
push 0x406418
mov edx, 0x578
call fcn.00475b3c
mov dword [ebp - 0x438], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x422], bl
test edi, edi
js 0x477ba3
cmp byte [ebp - 0x421], 0
lea ecx, [ebp - 0x438]
je 0x47789c
mov ax, word [ebp - 0x43c]
mov dword [ebp - 0x448], 0x3a0020
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x448]
push eax
mov dword [ebp - 0x444], 0x5c
call fcn.00433a7a
mov ecx, dword [ebp + 4]
mov edi, eax
test edi, edi
jns 0x4778c8
mov edx, 0x584
jmp 0x4778b8
lea eax, [ebp - 0x422]
mov edx, esi
push eax
call fcn.004356ea
mov ecx, dword [ebp + 4]
mov edi, eax
test edi, edi
jns 0x4778c8
mov edx, 0x589
push edi
push 0x406418
call fcn.00475b3c
jmp 0x477ba3
push 0x4064a4
lea ecx, [ebp - 0x430]
call fcn.0043340a
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x430]
mov ecx, dword [ebp + 4]
neg edi
sbb edi, edi
and edi, 0x7ff8fff2
add edi, 0x8007000e
jns 0x4778fe
mov edx, 0x591
jmp 0x477937
push dword [ebp - 0x438]
lea ecx, [ebp - 0x430]
call fcn.00433b9e
test eax, eax
js 0x477bb7
mov edi, dword [ebp - 0x430]
mov ecx, dword [ebp + 4]
neg edi
sbb edi, edi
and edi, 0x7ff8fff2
add edi, 0x8007000e
jns 0x477944
mov edx, 0x597
push edi
push 0x406418
call fcn.00475b3c
jmp 0x4779b9
push ebx
push ebx
push 0x42f8e0
push 0x4a1a70
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitOnceExecuteOnce]
cmp byte [0x4a194a], 0
jne 0x4779b9
cmp byte [ebp - 0x422], 0
je 0x477971
call fcn.004784e0
test al, al
jne 0x4779b9
mov ecx, dword [ebp - 0x440]
push ebx
push 1
push dword [ebp - 0x430]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4a47a8]
call esi
push dword [ebp - 0x430]
mov edi, eax
push 0x40666c
push edi
push 0x406418
push 0x59f
push dword [ebp + 4]
call fcn.004785d6
mov esi, dword [ebp - 0x428]
add esp, 0x18
mov byte [ebp - 4], bl
push dword [ebp - 0x430]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
js 0x477ba3
push ebx
push ebx
push 0x42f8e0
push 0x4a1a70
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitOnceExecuteOnce]
cmp byte [0x4a194a], 0
jne 0x477ba3
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
push 0x16
push ebx
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
js 0x477b07
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.0043340a
mov byte [ebp - 4], 2
mov esi, 0x8007000e
mov edi, dword [ebp - 0x428]
mov ecx, dword [ebp + 4]
neg edi
sbb edi, edi
and edi, 0x7ff8fff2
add edi, esi
jns 0x477a53
push edi
push 0x406418
mov edx, 0x5ad
call fcn.00475b3c
jmp 0x477af6
push 0x4064a4
lea ecx, [ebp - 0x434]
call fcn.0043340a
mov byte [ebp - 4], 3
cmp dword [ebp - 0x434], 0
jne 0x477a7a
mov edi, esi
mov edx, 0x5b3
push esi
jmp 0x477aa3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x434]
call fcn.004338b7
mov esi, dword [ebp - 0x434]
test esi, esi
jne 0x477ab2
mov eax, 0x8007000e
mov edx, 0x5b9
mov edi, eax
push eax
mov ecx, dword [ebp + 4]
push 0x406418
call fcn.00475b3c
jmp 0x477aea
mov ecx, dword [ebp - 0x440]
push ebx
push 1
push esi
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x4a47a8]
call edi
push esi
push 0x40666c
mov edi, eax
push edi
push 0x406418
push 0x5be
push dword [ebp + 4]
call fcn.004785d6
add esp, 0x18
push dword [ebp - 0x434]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x428]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x477ba3
cmp edi, 0x80070057
jne 0x477b16
mov edi, ebx
jmp 0x477ba3
mov ecx, dword [ebp + 4]
mov edx, 0x5ca
push edi
push 0x406418
call fcn.00478527
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x42c], ebx
push ebx
push eax
mov dword [ebp - 0x428], ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004358fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x42c]
push dword [esi + 8]
push dword [esi + 4]
push 0x7df
call fcn.0043598b
push 0x40667c
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.004338e0
lea ecx, [ebp - 0x42c]
call fcn.0042b397
push dword [ebp - 0x438]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.004678b9
ret
mov ecx, eax
call fcn.0047636a
int3