Function at 0x477a50
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca6a0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x278
mov eax, dword [0x519100]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x22c], edi
mov esi, ecx
mov dword [ebp - 0x230], esi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x234], esi
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x477be7
and edi, 0xffff00ff
cmp edi, 0x24
jne 0x477afc
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x477cc8
cmp eax, 0x104
ja 0x477cf9
jmp 0x477be7
cmp edi, 0x25
jne 0x477b2b
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x477d28
cmp eax, 0x104
ja 0x477d59
jmp 0x477be7
cmp edi, 0x26
jne 0x477b3f
lea edx, [edi - 0x25]
mov ecx, esi
call fcn.00477d90
jmp 0x477c22
cmp edi, 0x2b
jne 0x477b50
mov ecx, esi
call fcn.00477f90
jmp 0x477c22
cmp edi, 0x23
jne 0x477b76
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], str.Common_AppData
mov dword [eax + 4], 0xe
call fcn.00477940
add esp, 8
jmp 0x477c22
cmp edi, 0x1a
jne 0x477c42
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
mov ecx, esi
mov dword [eax], str.AppData
mov dword [eax + 4], 7
call fcn.00477940
add esp, 8
jmp 0x477c22
xorps xmm0, xmm0
lea ecx, [ebp - 0x228]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477c04
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00423920
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0048471b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp edi, 0x1c
jne 0x477c9d
sub esp, 8
mov dword [ebp - 4], 2
mov eax, esp
mov ecx, esi
mov dword [eax], str.Local_AppData
mov dword [eax + 4], 0xd
call fcn.00477940
add esp, 8
jmp 0x477c22
lea ecx, [ebp - 0x22c]
push ecx
push 0x33
push str.Unable_to_retrieve_a_path_of_the_known_folder____
push eax
lea ecx, [ebp - 0x288]
call fcn.004780e0
push 0x516930
lea eax, [ebp - 0x288]
push eax
call fcn.00486900
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x22c]
push ecx
push 0x33
push str.Unable_to_retrieve_a_path_of_the_known_folder____
push eax
lea ecx, [ebp - 0x248]
call fcn.004780e0
push 0x516930
lea eax, [ebp - 0x248]
push eax
call fcn.00486900
lea eax, [ebp - 0x22c]
push eax
push 0x33
push str.Unable_to_retrieve_a_path_of_the_known_folder____
push 0xea
lea ecx, [ebp - 0x258]
call fcn.004780e0
push 0x516930
lea eax, [ebp - 0x258]
push eax
call fcn.00486900
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x22c]
push ecx
push 0x33
push str.Unable_to_retrieve_a_path_of_the_known_folder____
push eax
lea ecx, [ebp - 0x268]
call fcn.004780e0
push 0x516930
lea eax, [ebp - 0x268]
push eax
call fcn.00486900
lea eax, [ebp - 0x22c]
push eax
push 0x33
push str.Unable_to_retrieve_a_path_of_the_known_folder____
push 0xea
lea ecx, [ebp - 0x278]
call fcn.004780e0
push 0x516930
lea eax, [ebp - 0x278]
push eax
call fcn.00486900
int3