Function at 0x413d0d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push esi
push edi
mov edi, ecx
push str.ProgramFiles64Folder
push edi
call fcn.00408e89
test eax, eax
jne 0x413d88
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409a5a
add eax, 0x10
mov dword [ebp - 0x80], eax
push 0x44e474
lea eax, [ebp - 0x80]
call fcn.004141a7
test eax, eax
je 0x413d7d
lea eax, [ebp - 0x80]
call fcn.0040872e
mov esi, edi
call fcn.00409ad4
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.004046a2
mov al, 1
jmp 0x413fa1
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.004046a2
push ebx
push str.SystemFolder
lea eax, [ebp - 0x7c]
mov byte [ebp - 0x75], 1
call fcn.004045c9
push dword [eax]
push edi
call fcn.00408e89
mov ebx, eax
mov eax, dword [ebp - 0x7c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.004046a2
test bl, bl
je 0x413dcd
push 0x104
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x413e0b
push str.WindowsFolder
lea eax, [ebp - 0x7c]
call fcn.004045c9
push dword [eax]
push edi
call fcn.00408e89
mov ebx, eax
mov eax, dword [ebp - 0x7c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.004046a2
test bl, bl
je 0x413e24
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 0x413e98
push str.WindowsVolume
lea eax, [ebp - 0x7c]
call fcn.004045c9
push dword [eax]
push edi
call fcn.00408e89
mov ebx, eax
mov eax, dword [ebp - 0x7c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.004046a2
test bl, bl
je 0x413e6d
push 0x104
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov word [ebp + 0x19e], ax
jmp 0x413e98
push str.TempFolder
push edi
call fcn.00408e89
test eax, eax
jne 0x413eaa
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.004045a6
jmp 0x413f9d
push str.SETUPEXEDIR
push edi
call fcn.00408e89
test eax, eax
jne 0x413f04
mov eax, dword [0x456c3c]
cmp dword [eax - 0xc], 0
mov esi, 0x456c3c
jne 0x413ef8
push 0x105
lea eax, [ebp - 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x413ee4
cmp word [ebp + eax*2 - 0x74], 0x5c
je 0x413ee7
dec eax
jne 0x413edc
xor ecx, ecx
mov word [ebp + eax*2 - 0x72], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.004045a6
mov eax, esi
call fcn.0040872e
jmp 0x413f9d
xor esi, esi
push dword [esi*4 + 0x455cec]
push edi
call fcn.00408e89
test eax, eax
je 0x413f1d
inc esi
cmp esi, 0xe
jb 0x413f06
cmp esi, 0xe
jae 0x413f99
lea eax, [ebp - 0x7c]
push eax
lea esi, [esi*4 + 0x44e43c]
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x413f53
push dword [esi]
mov ecx, edi
call fcn.00413fb8
pop ecx
test al, al
jne 0x413f9d
call fcn.0041408e
mov byte [ebp - 0x75], al
jmp 0x413f9d
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 0x413f99
lea eax, [ebp + 0x198]
push eax
push edi
call fcn.004045a6
mov esi, edi
call fcn.00409ad4
jmp 0x413f9d
mov byte [ebp - 0x75], 0
mov al, byte [ebp - 0x75]
pop ebx
mov ecx, dword [ebp + 0x3a0]
pop edi
xor ecx, ebp
pop esi
call fcn.0042e88b
add ebp, 0x3a4
leave
ret