Function at 0x409086
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp byte [ebx], 0
je 0x4093aa
push 0x5c
push ebx
call fcn.0041c440
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4090cd
mov esi, edi
lea eax, [ebp - 0x104]
sub esi, ebx
push esi
push ebx
push eax
call fcn.0041bd20
add esp, 0xc
and byte [ebp + esi - 0x104], 0
jmp 0x4090dc
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.0041bb30
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push str._Win_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409109
mov esi, 0x42cc40
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4093a2
lea eax, [ebp - 0x104]
push str._Sys_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409141
mov esi, 0x42cc40
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.System
push esi
call fcn.00405453
jmp 0x4093a0
lea eax, [ebp - 0x104]
push str._Sys32_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409170
mov esi, 0x42cc40
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.System32
jmp 0x409136
lea eax, [ebp - 0x104]
push str._AutoSys_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x40919d
mov esi, 0x42cc40
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4093a2
lea eax, [ebp - 0x104]
push str._AppData_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x4091d8
mov esi, 0x42cc40
push esi
push 0x1a
call fcn.0040495c
pop ecx
test eax, eax
pop ecx
jne 0x4093a2
push esi
push 5
call fcn.0040495c
jmp 0x4093a0
lea eax, [ebp - 0x104]
push str._CommonAppData_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x4091f9
mov esi, 0x42cc40
push esi
push 0x23
jmp 0x409218
lea eax, [ebp - 0x104]
push str._LocalAppData_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409229
mov esi, 0x42cc40
push esi
push 0x1c
call fcn.0040495c
pop ecx
test eax, eax
pop ecx
jne 0x4093a2
jmp 0x4091b9
lea eax, [ebp - 0x104]
push str._MyDocuments_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409247
mov esi, 0x42cc40
jmp 0x4091cb
lea eax, [ebp - 0x104]
push str._CommonDocuments_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x40926b
mov esi, 0x42cc40
push esi
push 0x2e
jmp 0x4091bc
lea eax, [ebp - 0x104]
push str._Desktop_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409289
mov esi, 0x42cc40
jmp 0x4092b7
lea eax, [ebp - 0x104]
push str._CommonDesktop_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x4092bf
mov esi, 0x42cc40
push esi
push 0x19
call fcn.0040495c
pop ecx
test eax, eax
pop ecx
jne 0x4093a2
push esi
push 0x10
jmp 0x4091ce
lea eax, [ebp - 0x104]
push str._ProgramFiles_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x4092e6
mov esi, 0x42cc40
push esi
call fcn.0040480f
jmp 0x4093a1
lea eax, [ebp - 0x104]
push str._CommonFiles_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x40930d
mov esi, 0x42cc40
push esi
call fcn.0040486b
jmp 0x4093a1
lea eax, [ebp - 0x104]
push str._WinTemp_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409337
mov esi, 0x42cc40
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4093a2
lea eax, [ebp - 0x104]
push str._Temp_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
je 0x409390
lea eax, [ebp - 0x104]
push str._ADTemp_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
je 0x409390
lea eax, [ebp - 0x104]
push str._Exe_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409383
push 0x42e5a0
jmp 0x409395
push ebx
push 0x42cc40
call fcn.0041bb30
jmp 0x4093c7
push 0x42eb00
mov esi, 0x42cc40
push esi
call fcn.0041bb30
pop ecx
pop ecx
test edi, edi
je 0x4093c9
inc edi
push edi
jmp 0x4093c1
mov esi, 0x42cc40
push esi
call fcn.0040480f
mov eax, dword [0x42eca4]
pop ecx
cmp byte [eax], 0
je 0x4093c9
push eax
push esi
call fcn.00405453
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret