Function at 0x10003586
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x414
lea ebp, [esp - 4]
mov eax, dword [0x100421cc]
xor eax, ebp
mov dword [ebp + 0x414], eax
push 0x10
mov eax, 0x100320c9
call fcn.10022f29
mov edi, ecx
push str.ProgramFiles64Folder
push edi
call fcn.10001d61
or esi, 0xffffffff
test eax, eax
jne 0x10003612
mov eax, dword [edi]
sub eax, 0x10
call fcn.10002462
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
push 0x10037718
lea eax, [ebp - 0x14]
call fcn.1000316f
test eax, eax
je 0x10003604
lea eax, [ebp - 0x14]
call fcn.100018e7
mov esi, edi
call fcn.10002833
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.100024ba
mov al, 1
jmp 0x10003878
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.100024ba
push str.SystemFolder
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0xd], 1
call fcn.100021bd
mov dword [ebp - 4], 1
push dword [eax]
push edi
call fcn.10001d61
mov ebx, eax
neg ebx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.100024ba
test bl, bl
je 0x10003661
push 0x104
lea eax, [ebp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x100036aa
push str.WindowsFolder
lea eax, [ebp - 0x18]
push eax
call fcn.100021bd
mov dword [ebp - 4], 2
push dword [eax]
push edi
call fcn.10001d61
mov ebx, eax
neg ebx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.100024ba
test bl, bl
je 0x100036c3
push 0x104
lea eax, [ebp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, eax
push 0x5c
pop ecx
mov word [ebp + eax + 0x20c], cx
xor ecx, ecx
mov word [ebp + eax + 0x20e], cx
jmp 0x10003742
push str.WindowsVolume
lea eax, [ebp - 0x18]
push eax
call fcn.100021bd
mov dword [ebp - 4], 3
push dword [eax]
push edi
call fcn.10001d61
mov ebx, eax
neg ebx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.100024ba
test bl, bl
je 0x10003717
push 0x104
lea eax, [ebp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov word [ebp + 0x212], ax
jmp 0x10003742
push str.TempFolder
push edi
call fcn.10001d61
test eax, eax
jne 0x10003763
lea eax, [ebp + 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
mov word [ebp + eax*2 + 0x20c], cx
lea eax, [ebp + 0x20c]
push eax
call fcn.10020d18
pop ecx
push eax
lea eax, [ebp + 0x20c]
push eax
mov eax, edi
call fcn.10002369
jmp 0x10003875
push str.SETUPEXEDIR
push edi
call fcn.10001d61
test eax, eax
jne 0x100037c9
mov eax, dword [0x10044978]
cmp dword [eax - 0xc], 0
mov esi, 0x10044978
jne 0x100037bd
push 0x105
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x1000379d
cmp word [ebp + eax*2], 0x5c
je 0x100037a0
dec eax
jne 0x10003795
xor ecx, ecx
mov word [ebp + eax*2 + 2], cx
lea eax, [ebp]
push eax
call fcn.10020d18
pop ecx
push eax
lea eax, [ebp]
push eax
mov eax, esi
call fcn.10002369
mov eax, esi
call fcn.100018e7
jmp 0x10003875
xor ebx, ebx
push dword [ebx*4 + 0x10043660]
push edi
call fcn.10001d61
test eax, eax
je 0x100037e2
inc ebx
cmp ebx, 0xe
jb 0x100037cb
cmp ebx, 0xe
jae 0x10003871
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebx*4 + 0x100376e0]
push dword [ebx]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x1000381c
push dword [ebx]
mov ecx, edi
call fcn.1000389b
pop ecx
test al, al
jne 0x10003875
call fcn.10003980
mov byte [ebp - 0xd], al
jmp 0x10003875
lea eax, [ebp + 0x20c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
and dword [ebp - 0x14], 0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test esi, esi
je 0x10003871
lea eax, [ebp + 0x20c]
push eax
call fcn.10020d18
pop ecx
push eax
lea eax, [ebp + 0x20c]
push eax
mov eax, edi
call fcn.10002369
mov esi, edi
call fcn.10002833
jmp 0x10003875
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.10020bb8
add ebp, 0x418
leave
ret