Function at 0x409481
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 0x4097f9
push 0x5c
push ebx
call fcn.0041c440
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4094c8
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 0x4094d7
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 0x409504
mov esi, 0x42d240
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4097f0
lea eax, [ebp - 0x104]
push str._Sys_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x40953c
mov esi, 0x42d240
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.System
push esi
call fcn.00405453
jmp 0x4097ee
lea eax, [ebp - 0x104]
push str._Sys32_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x40956b
mov esi, 0x42d240
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.System32
jmp 0x409531
lea eax, [ebp - 0x104]
push str._AutoSys_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409598
mov esi, 0x42d240
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4097f0
lea eax, [ebp - 0x104]
push str._AppData_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x4095d3
mov esi, 0x42d240
push esi
push 0x1a
call fcn.0040495c
pop ecx
test eax, eax
pop ecx
jne 0x4097f0
push esi
push 5
call fcn.0040495c
jmp 0x4097ee
lea eax, [ebp - 0x104]
push str._CommonAppData_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x4095f4
mov esi, 0x42d240
push esi
push 0x23
jmp 0x409613
lea eax, [ebp - 0x104]
push str._LocalAppData_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409624
mov esi, 0x42d240
push esi
push 0x1c
call fcn.0040495c
pop ecx
test eax, eax
pop ecx
jne 0x4097f0
jmp 0x4095b4
lea eax, [ebp - 0x104]
push str._MyDocuments_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409642
mov esi, 0x42d240
jmp 0x4095c6
lea eax, [ebp - 0x104]
push str._CommonDocuments_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409666
mov esi, 0x42d240
push esi
push 0x2e
jmp 0x4095b7
lea eax, [ebp - 0x104]
push str._Desktop_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409684
mov esi, 0x42d240
jmp 0x4096b2
lea eax, [ebp - 0x104]
push str._CommonDesktop_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x4096ba
mov esi, 0x42d240
push esi
push 0x19
call fcn.0040495c
pop ecx
test eax, eax
pop ecx
jne 0x4097f0
push esi
push 0x10
jmp 0x4095c9
lea eax, [ebp - 0x104]
push str._ProgramFiles_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x4096e1
mov esi, 0x42d240
push esi
call fcn.0040480f
jmp 0x4097ef
lea eax, [ebp - 0x104]
push str._CommonFiles_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409708
mov esi, 0x42d240
push esi
call fcn.0040486b
jmp 0x4097ef
lea eax, [ebp - 0x104]
push str._WinTemp_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409735
mov esi, 0x42d240
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4097f0
lea eax, [ebp - 0x104]
push str._Temp_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
je 0x4097de
lea eax, [ebp - 0x104]
push str._ADTemp_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
je 0x4097de
lea eax, [ebp - 0x104]
push str._InstallFolder_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x409785
push 0x42cc40
jmp 0x4097e3
lea eax, [ebp - 0x104]
push str._Exe_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x4097a3
push 0x42e5a0
jmp 0x4097e3
lea eax, [ebp - 0x104]
push str._PreviousFolder_
push eax
call fcn.00423160
pop ecx
test eax, eax
pop ecx
jne 0x4097d1
cmp dword [0x42e1e0], eax
je 0x40977e
cmp byte [0x42cfa0], al
je 0x40977e
push 0x42cfa0
jmp 0x4097e3
push ebx
push 0x42d240
call fcn.0041bb30
jmp 0x409808
push 0x42eb00
mov esi, 0x42d240
push esi
call fcn.0041bb30
pop ecx
pop ecx
test edi, edi
je 0x40980a
inc edi
push edi
push esi
jmp 0x409803
push 0x4276c8
push 0x42d240
call fcn.00405453
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret