Function at 0x426160
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0b66
mov eax, dword fs:[0]
push eax
sub esp, 0x6bc
mov eax, dword [0x629a40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x6c4], ebx
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x4261e9
xor eax, eax
mov dword [ebx + 0x14], 7
push eax
mov dword [ebx + 0x10], 0
push 0x61b488
mov word [ebx], ax
call fcn.00404030
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x426bb2
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004043b0
jmp 0x426bb2
push 0x61de80
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x42626f
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00578b50
add esp, 8
lea edx, [ebp - 0x218]
push 0x26
call fcn.00426d80
lea edi, [ebp - 0x218]
add esp, 8
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x426230
mov eax, dword [0x61b718]
mov ecx, ebx
mov dword [edi], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00403d10
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x426bb2
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004043b0
jmp 0x426bb2
push 0x61dea8
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x4262d6
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00578b50
add esp, 8
lea edx, [ebp - 0x218]
push 5
call fcn.00426d80
lea edi, [ebp - 0x218]
add esp, 8
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4262b0
mov eax, dword [0x61b718]
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00403d10
jmp 0x426baa
push str.desktop
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x426327
push eax
push eax
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x428]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x426301
mov eax, dword [0x61b718]
mov ecx, ebx
mov dword [edi], eax
lea eax, [ebp - 0x428]
push eax
call fcn.00403d10
jmp 0x426baa
push 0x61dec0
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x426361
push eax
push 6
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x428]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x426353
jmp 0x42630d
push str.program
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x426420
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00578b50
add esp, 8
lea edx, [ebp - 0x218]
push 0x26
call fcn.00426d80
lea ecx, [ebp - 0x218]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4263a4
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jl 0x4262c3
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00578b50
add esp, 0xc
lea eax, [ebp - 0x218]
push 3
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00586c91
lea edi, [ebp - 0x428]
add esp, 0xc
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4263f3
mov ecx, 7
lea eax, [ebp - 0x428]
mov esi, str.Program_Files_
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
movsw word es:[edi], word [esi]
call fcn.00403d10
jmp 0x426baa
push str.curr
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x426484
push 0x208
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00578b50
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x428]
push 0x5c
push eax
call fcn.00577bd0
xor ecx, ecx
add esp, 8
mov word [eax + 2], cx
lea eax, [ebp - 0x428]
push eax
mov ecx, ebx
call fcn.00403d10
jmp 0x426baa
push str.temp
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x42659f
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00578b50
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x208
push 0
push eax
call fcn.00578b50
add esp, 0xc
call fcn.00426bd0
test al, al
je 0x426530
push ecx
push 0x1c
lea edx, [ebp - 0x218]
call fcn.00426d80
add esp, 8
test eax, eax
je 0x42658c
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4264f0
mov eax, dword [str.Temp_]
mov dword [ecx], eax
mov eax, dword [0x61def8]
mov dword [ecx + 4], eax
mov eax, dword [0x61defc]
mov dword [ecx + 8], eax
mov ax, word [0x61df00]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.00403d10
jmp 0x426baa
lea eax, [ebp - 0x428]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426564
sub ecx, edx
sar ecx, 1
jne 0x42658c
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00403d10
jmp 0x426baa
push str.recirle
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x4265e8
push 0x208
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00578b50
add esp, 8
lea edx, [ebp - 0x428]
push 0xa
call fcn.00426d80
add esp, 8
lea eax, [ebp - 0x428]
mov ecx, ebx
push eax
call fcn.00403d10
jmp 0x426baa
push str.downloads
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x42673e
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00578b50
add esp, 8
lea edx, [ebp - 0x218]
push 0x10
call fcn.00426d80
lea ecx, [ebp - 0x218]
add esp, 8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426630
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
je 0x4266b1
push 0x5c
push eax
call fcn.00577bd0
xor ecx, ecx
add esp, 8
mov word [eax + 2], cx
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x426661
mov eax, dword [0x61df2c]
mov dword [ecx], eax
mov eax, dword [0x61df30]
mov dword [ecx + 4], eax
mov eax, dword [0x61df34]
mov dword [ecx + 8], eax
mov eax, dword [0x61df38]
mov dword [ecx + 0xc], eax
mov eax, dword [0x61df3c]
mov dword [ecx + 0x10], eax
mov ax, word [0x61df40]
mov word [ecx + 0x14], ax
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.00403d10
jmp 0x426baa
push 0x104
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4266d0
sub ecx, edx
sar ecx, 1
je 0x42672b
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4266f0
mov eax, dword [str.Downloads_]
mov dword [ecx], eax
mov eax, dword [0x61df5c]
mov dword [ecx + 4], eax
mov eax, dword [0x61df60]
mov dword [ecx + 8], eax
mov eax, dword [0x61df64]
mov dword [ecx + 0xc], eax
mov eax, dword [0x61df68]
mov dword [ecx + 0x10], eax
mov eax, dword [0x61df6c]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00403d10
jmp 0x426baa
xor eax, eax
mov dword [ebp - 0x634], 7
mov dword [ebp - 0x638], 0
mov word [ebp - 0x648], ax
push 0x208
push eax
lea eax, [ebp - 0x630]
mov byte [ebp - 4], 1
push eax
call fcn.00578b50
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x104
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [ebp - 0x630]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x426794
mov ecx, 9
lea eax, [ebp - 0x630]
mov esi, str.AppDataLocalLow_
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x648]
movsw word es:[edi], word [esi]
call fcn.00403c40
push str.locallow
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x4268a4
push ecx
push 0x1a
lea edx, [ebp - 0x630]
call fcn.00426d80
add esp, 8
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x690]
call fcn.00403d10
push str.LocalLow
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 2
call fcn.00403d10
push str.Roaming
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 3
call fcn.00403d10
lea eax, [ebp - 0x678]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x660]
lea ecx, [ebp - 0x690]
call fcn.0042af70
add esp, 4
lea ecx, [ebp - 0x660]
call fcn.00403020
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 2
call fcn.00403020
cmp dword [ebp - 0x67c], 8
lea ecx, [ebp - 0x690]
cmovae ecx, dword [ebp - 0x690]
call fcn.00421ed0
test al, al
je 0x426899
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp - 0x648]
call fcn.00404130
lea ecx, [ebp - 0x690]
jmp 0x426b31
push str.roaming
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
je 0x426a41
push str.Roaming
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
je 0x426a41
push str.local
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x4269d8
push ecx
push 0x1c
lea edx, [ebp - 0x630]
call fcn.00426d80
add esp, 8
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x630]
call fcn.00421ed0
test al, al
je 0x426927
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x648]
call fcn.00403c40
jmp 0x426b3a
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x6a8]
call fcn.00403d70
push str.Local
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 8
call fcn.00403d10
push str.LocalLow
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 9
call fcn.00403d10
lea eax, [ebp - 0x660]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x678]
lea ecx, [ebp - 0x6a8]
call fcn.0042af70
add esp, 4
lea ecx, [ebp - 0x678]
call fcn.00403020
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 8
call fcn.00403020
cmp dword [ebp - 0x694], 8
lea ecx, [ebp - 0x6a8]
cmovae ecx, dword [ebp - 0x6a8]
call fcn.00421ed0
test al, al
je 0x4269cd
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6a8]
push eax
lea ecx, [ebp - 0x648]
call fcn.00404130
lea ecx, [ebp - 0x6a8]
jmp 0x426b31
push str.system
lea ecx, [ebp + 8]
call fcn.0040c8d0
test eax, eax
jne 0x426a31
push ecx
push 0x29
lea edx, [ebp - 0x630]
call fcn.00426d80
add esp, 8
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x630]
call fcn.00421ed0
test al, al
je 0x426b3a
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x648]
call fcn.00403c40
jmp 0x426b3a
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.00404e20
jmp 0x426b9f
push ecx
push 0x1a
lea edx, [ebp - 0x630]
call fcn.00426d80
add esp, 8
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x630]
call fcn.00421ed0
test al, al
je 0x426a85
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x648]
call fcn.00403c40
jmp 0x426b3a
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x6c0]
call fcn.00403d70
push str.Roaming
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 5
call fcn.00403d10
push str.LocalLow
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 6
call fcn.00403d10
lea eax, [ebp - 0x660]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x678]
lea ecx, [ebp - 0x6c0]
call fcn.0042af70
add esp, 4
lea ecx, [ebp - 0x678]
call fcn.00403020
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 5
call fcn.00403020
cmp dword [ebp - 0x6ac], 8
lea ecx, [ebp - 0x6c0]
cmovae ecx, dword [ebp - 0x6c0]
call fcn.00421ed0
test al, al
je 0x426b2b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6c0]
push eax
lea ecx, [ebp - 0x648]
call fcn.00404130
lea ecx, [ebp - 0x6c0]
mov byte [ebp - 4], 1
call fcn.00403020
cmp dword [ebp - 0x634], 8
lea ecx, [ebp - 0x648]
cmovae ecx, dword [ebp - 0x648]
call fcn.00421ed0
test al, al
je 0x426b93
push ecx
push str.system32
lea ecx, [ebp - 0x648]
call fcn.00403be0
cmp eax, 0xffffffff
jne 0x426b93
push ecx
push str.systemprofile
lea ecx, [ebp - 0x648]
call fcn.00403be0
cmp eax, 0xffffffff
jne 0x426b93
lea eax, [ebp - 0x648]
mov ecx, ebx
push eax
call fcn.00404e20
jmp 0x426b9f
push 0x61b488
mov ecx, ebx
call fcn.00403d10
lea ecx, [ebp - 0x648]
call fcn.00403020
lea ecx, [ebp + 8]
call fcn.00403020
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00572ac9
mov esp, ebp
pop ebp
ret