Function at 0x492310
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 0x4eea60
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x288
mov eax, dword [0x545100]
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 0x4924a7
and edi, 0xffff00ff
cmp edi, 0x24
jne 0x4923bc
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x492588
cmp eax, 0x104
ja 0x4925b9
jmp 0x4924a7
cmp edi, 0x25
jne 0x4923eb
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4925e8
cmp eax, 0x104
ja 0x492619
jmp 0x4924a7
cmp edi, 0x26
jne 0x4923ff
lea edx, [edi - 0x25]
mov ecx, esi
call fcn.00492650
jmp 0x4924e2
cmp edi, 0x2b
jne 0x492410
mov ecx, esi
call fcn.00492850
jmp 0x4924e2
cmp edi, 0x23
jne 0x492436
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], str.Common_AppData
mov dword [eax + 4], 0xe
call fcn.00492200
add esp, 8
jmp 0x4924e2
cmp edi, 0x1a
jne 0x492502
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.00492200
add esp, 8
jmp 0x4924e2
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 0x4924c4
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040ab20
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.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp edi, 0x1c
jne 0x49255d
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.00492200
add esp, 8
jmp 0x4924e2
lea ecx, [ebp - 0x22c]
push ecx
push 0x33
push str.Unable_to_retrieve_a_path_of_the_known_folder____
push eax
lea ecx, [ebp - 0x29c]
call fcn.004929a0
push 0x542628
lea eax, [ebp - 0x29c]
push eax
call fcn.004a869b
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 - 0x24c]
call fcn.004929a0
push 0x542628
lea eax, [ebp - 0x24c]
push eax
call fcn.004a869b
lea eax, [ebp - 0x22c]
push eax
push 0x33
push str.Unable_to_retrieve_a_path_of_the_known_folder____
push 0xea
lea ecx, [ebp - 0x260]
call fcn.004929a0
push 0x542628
lea eax, [ebp - 0x260]
push eax
call fcn.004a869b
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 - 0x274]
call fcn.004929a0
push 0x542628
lea eax, [ebp - 0x274]
push eax
call fcn.004a869b
lea eax, [ebp - 0x22c]
push eax
push 0x33
push str.Unable_to_retrieve_a_path_of_the_known_folder____
push 0xea
lea ecx, [ebp - 0x288]
call fcn.004929a0
push 0x542628
lea eax, [ebp - 0x288]
push eax
call fcn.004a869b
int3