Function at 0x482300
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push edi
mov edi, ecx
push str.ProgramFiles64Folder
push edi
call fcn.004429e2
test eax, eax
jne 0x48236e
push edi
lea eax, [ebp - 0x80]
push eax
call fcn.00403ccd
push 0x517890
lea eax, [ebp - 0x80]
call fcn.0046ab70
test eax, eax
je 0x482366
lea eax, [ebp - 0x80]
call fcn.004412d2
mov eax, edi
call fcn.004687f0
lea ecx, [ebp - 0x80]
call fcn.004036cd
mov al, 1
jmp 0x482583
lea ecx, [ebp - 0x80]
call fcn.004036cd
push ebx
push esi
push str.SystemFolder
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 0x75], 1
call fcn.00405d46
push dword [eax]
push edi
call fcn.004429e2
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x7c]
inc bl
call fcn.004036cd
test bl, bl
je 0x4823b2
push 0x104
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x4823ee
push str.WindowsFolder
lea eax, [ebp - 0x7c]
push eax
call fcn.00405d46
push dword [eax]
push edi
call fcn.004429e2
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x7c]
inc bl
call fcn.004036cd
test bl, bl
je 0x482407
push 0x104
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, eax
push 0x5c
pop ecx
mov word [ebp + eax + 0x198], cx
xor ecx, ecx
mov word [ebp + eax + 0x19a], cx
jmp 0x482479
push str.WindowsVolume
lea eax, [ebp - 0x7c]
push eax
call fcn.00405d46
push dword [eax]
push edi
call fcn.004429e2
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x7c]
inc bl
call fcn.004036cd
test bl, bl
je 0x48244e
push 0x104
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov word [ebp + 0x19e], ax
jmp 0x482479
push str.TempFolder
push edi
call fcn.004429e2
test eax, eax
jne 0x48248b
lea eax, [ebp + 0x198]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
mov word [ebp + eax*2 + 0x198], cx
lea eax, [ebp + 0x198]
push eax
push edi
call fcn.00405d23
jmp 0x48257e
push str.SETUPEXEDIR
push edi
call fcn.004429e2
test eax, eax
jne 0x4824e5
mov eax, dword [0x5457b0]
cmp dword [eax - 0xc], 0
mov esi, 0x5457b0
jne 0x4824d9
push 0x105
lea eax, [ebp - 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x4824c5
cmp word [ebp + eax*2 - 0x74], 0x5c
je 0x4824c8
dec eax
jne 0x4824bd
xor ecx, ecx
mov word [ebp + eax*2 - 0x72], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.00405d23
mov eax, esi
call fcn.004412d2
jmp 0x48257e
xor esi, esi
push dword [esi*4 + 0x543dc4]
push edi
call fcn.004429e2
test eax, eax
je 0x4824fe
inc esi
cmp esi, 0xe
jb 0x4824e7
cmp esi, 0xe
jae 0x48257a
lea eax, [ebp - 0x7c]
push eax
lea esi, [esi*4 + 0x517858]
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x482534
push dword [esi]
mov ebx, edi
call fcn.00482599
pop ecx
test al, al
jne 0x48257e
call fcn.0048266d
mov byte [ebp - 0x75], al
jmp 0x48257e
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
and dword [ebp - 0x80], 0
mov esi, eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x80]
push dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test esi, esi
je 0x48257a
lea eax, [ebp + 0x198]
push eax
push edi
call fcn.00405d23
mov eax, edi
call fcn.004687f0
jmp 0x48257e
mov byte [ebp - 0x75], 0
mov al, byte [ebp - 0x75]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004c625d
add ebp, 0x3a4
leave
ret