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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff496
mov eax, dword fs:[0]
push eax
sub esp, 0x6b8
mov eax, dword [0x69def4]
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, dword [ebp + 8]
mov dword [ebp - 0x6c4], 0
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test esi, esi
jne 0x424d63
push 0x6097e8
mov ecx, ebx
call fcn.00405d50
mov ecx, dword [ebp + 0x20]
cmp ecx, 8
jb 0x4257da
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004073f0
jmp 0x4257da
mov edi, dword [ebp + 0x20]
lea eax, [ebp + 0xc]
push 3
cmp edi, 8
push 0x60c1b8
cmovae eax, dword [ebp + 0xc]
push esi
push eax
call fcn.00407100
add esp, 0x10
test eax, eax
jne 0x424df4
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005d4b40
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00426ea0
lea edi, [ebp - 0x218]
add esp, 0x1c
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x424db5
mov eax, dword [0x609b38]
mov ecx, ebx
mov dword [edi], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00405d50
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x4257da
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.004073f0
jmp 0x4257da
push 3
cmp edi, 8
lea eax, [ebp + 0xc]
push 0x60c1c0
cmovae eax, dword [ebp + 0xc]
push esi
push eax
call fcn.00407100
add esp, 0x10
test eax, eax
jne 0x424e69
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005d4b40
push 0
push 5
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00426ea0
lea edi, [ebp - 0x218]
add esp, 0x1c
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x424e43
mov eax, dword [0x609b38]
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00405d50
jmp 0x4257d2
lea eax, [ebp + 0xc]
push str.desktop
push eax
call fcn.004241e0
add esp, 8
test al, al
je 0x424ec6
push 0
push 0
lea eax, [ebp - 0x424]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x424]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x424ea0
mov eax, dword [0x609b38]
mov ecx, ebx
mov dword [edi], eax
lea eax, [ebp - 0x424]
push eax
call fcn.00405d50
jmp 0x4257d2
lea eax, [ebp + 0xc]
push 0x60c1d8
push eax
call fcn.004241e0
add esp, 8
test al, al
je 0x424f0e
push 0
push 6
lea eax, [ebp - 0x424]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x424]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x424f00
jmp 0x424eac
lea eax, [ebp + 0xc]
push str.program
push eax
call fcn.004241e0
add esp, 8
test al, al
je 0x424fdd
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005d4b40
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00426ea0
lea ecx, [ebp - 0x218]
add esp, 0x1c
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424f60
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jl 0x424e56
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.005d4b40
push 3
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.005e05ec
lea edi, [ebp - 0x424]
add esp, 0x18
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x424fb0
mov ecx, 7
lea eax, [ebp - 0x424]
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.00405d50
jmp 0x4257d2
lea eax, [ebp + 0xc]
push str.curr
push eax
call fcn.004241e0
add esp, 8
test al, al
je 0x425046
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.005d4b40
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x424]
push 0x5c
push eax
call fcn.005d65c0
xor ecx, ecx
add esp, 8
mov word [eax + 2], cx
lea eax, [ebp - 0x424]
push eax
mov ecx, ebx
call fcn.00405d50
jmp 0x4257d2
lea eax, [ebp + 0xc]
push str.temp
push eax
call fcn.004241e0
add esp, 8
test al, al
je 0x42516f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005d4b40
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.005d4b40
add esp, 0x18
call fcn.00425ad0
test al, al
je 0x425100
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00426ea0
add esp, 0x10
test eax, eax
je 0x42515c
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4250c0
mov eax, dword [str.Temp_]
mov dword [ecx], eax
mov eax, dword [0x60c22c]
mov dword [ecx + 4], eax
mov eax, dword [0x60c230]
mov dword [ecx + 8], eax
mov ax, word [0x60c234]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.00405d50
jmp 0x4257d2
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
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 0x425134
sub ecx, edx
sar ecx, 1
jne 0x42515c
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.00405d50
jmp 0x4257d2
lea eax, [ebp + 0xc]
push str.recirle
push eax
call fcn.004241e0
add esp, 8
test al, al
je 0x4251bf
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.005d4b40
push 0
push 0xa
lea eax, [ebp - 0x424]
push eax
push 0
call fcn.00426ea0
add esp, 0x1c
lea eax, [ebp - 0x424]
mov ecx, ebx
push eax
call fcn.00405d50
jmp 0x4257d2
lea eax, [ebp + 0xc]
push str.downloads
push eax
call fcn.004241e0
add esp, 8
test al, al
je 0x42531e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005d4b40
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00426ea0
lea ecx, [ebp - 0x218]
add esp, 0x1c
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425210
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
je 0x425291
push 0x5c
push eax
call fcn.005d65c0
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 0x425241
mov eax, dword [0x60c268]
mov dword [ecx], eax
mov eax, dword [0x60c26c]
mov dword [ecx + 4], eax
mov eax, dword [0x60c270]
mov dword [ecx + 8], eax
mov eax, dword [0x60c274]
mov dword [ecx + 0xc], eax
mov eax, dword [0x60c278]
mov dword [ecx + 0x10], eax
mov ax, word [0x60c27c]
mov word [ecx + 0x14], ax
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.00405d50
jmp 0x4257d2
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 0x4252b0
sub ecx, edx
sar ecx, 1
je 0x42530b
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4252d0
mov eax, dword [str.Downloads_]
mov dword [ecx], eax
mov eax, dword [0x60c29c]
mov dword [ecx + 4], eax
mov eax, dword [0x60c2a0]
mov dword [ecx + 8], eax
mov eax, dword [0x60c2a4]
mov dword [ecx + 0xc], eax
mov eax, dword [0x60c2a8]
mov dword [ecx + 0x10], eax
mov eax, dword [0x60c2ac]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00405d50
jmp 0x4257d2
xor eax, eax
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], 0
mov word [ebp - 0x644], ax
push 0x208
push eax
lea eax, [ebp - 0x62c]
mov byte [ebp - 4], 1
push eax
call fcn.005d4b40
add esp, 0xc
lea eax, [ebp - 0x62c]
push 0x104
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [ebp - 0x62c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x425374
mov ecx, 9
lea eax, [ebp - 0x62c]
mov esi, str.AppDataLocalLow_
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x644]
movsw word es:[edi], word [esi]
call fcn.0040b200
lea eax, [ebp + 0xc]
push str.locallow
push eax
call fcn.004241e0
add esp, 8
test al, al
je 0x425492
push 0
push 0x1a
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.00426ea0
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x68c]
call fcn.00405d50
push str.LocalLow
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 2
call fcn.00405d50
push str.Roaming
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 3
call fcn.00405d50
lea eax, [ebp - 0x674]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x68c]
push eax
call fcn.004324f0
add esp, 0xc
lea ecx, [ebp - 0x65c]
call fcn.00405db0
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 2
call fcn.00405db0
cmp dword [ebp - 0x678], 8
lea eax, [ebp - 0x68c]
cmovae eax, dword [ebp - 0x68c]
push eax
call fcn.00420390
add esp, 4
test al, al
je 0x425487
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x644]
call fcn.004071d0
lea ecx, [ebp - 0x68c]
jmp 0x425753
lea eax, [ebp + 0xc]
push str.roaming
push eax
call fcn.004241e0
add esp, 8
test al, al
jne 0x425655
lea eax, [ebp + 0xc]
push str.Roaming
push eax
call fcn.004241e0
add esp, 8
test al, al
jne 0x425655
lea eax, [ebp + 0xc]
push str.local
push eax
call fcn.004241e0
add esp, 8
test al, al
je 0x4255e0
push 0
push 0x1c
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.00426ea0
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x62c]
push eax
call fcn.00420390
add esp, 4
test al, al
je 0x425529
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x644]
call fcn.0040b200
jmp 0x42575c
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6a4]
call fcn.00413880
push str.Local
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 8
call fcn.00405d50
push str.LocalLow
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 9
call fcn.00405d50
lea eax, [ebp - 0x65c]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x6a4]
push eax
call fcn.004324f0
add esp, 0xc
lea ecx, [ebp - 0x674]
call fcn.00405db0
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 8
call fcn.00405db0
cmp dword [ebp - 0x690], 8
lea eax, [ebp - 0x6a4]
cmovae eax, dword [ebp - 0x6a4]
push eax
call fcn.00420390
add esp, 4
test al, al
je 0x4255d5
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6a4]
push eax
lea ecx, [ebp - 0x644]
call fcn.004071d0
lea ecx, [ebp - 0x6a4]
jmp 0x425753
lea eax, [ebp + 0xc]
push str.system
push eax
call fcn.004241e0
add esp, 8
test al, al
je 0x425645
push 0
push 0x29
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.00426ea0
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x62c]
push eax
call fcn.00420390
add esp, 4
test al, al
je 0x42575c
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x644]
call fcn.0040b200
jmp 0x42575c
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0041e810
jmp 0x4257c7
push 0
push 0x1a
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.00426ea0
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x62c]
push eax
call fcn.00420390
add esp, 4
test al, al
je 0x4256a1
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x644]
call fcn.0040b200
jmp 0x42575c
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6bc]
call fcn.00413880
push str.Roaming
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 5
call fcn.00405d50
push str.LocalLow
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 6
call fcn.00405d50
lea eax, [ebp - 0x65c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x6bc]
push eax
call fcn.004324f0
add esp, 0xc
lea ecx, [ebp - 0x674]
call fcn.00405db0
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 5
call fcn.00405db0
cmp dword [ebp - 0x6a8], 8
lea eax, [ebp - 0x6bc]
cmovae eax, dword [ebp - 0x6bc]
push eax
call fcn.00420390
add esp, 4
test al, al
je 0x42574d
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x644]
call fcn.004071d0
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 1
call fcn.00405db0
cmp dword [ebp - 0x630], 8
lea eax, [ebp - 0x644]
cmovae eax, dword [ebp - 0x644]
push eax
call fcn.00420390
add esp, 4
test al, al
je 0x4257bb
push 0
push str.system32
lea ecx, [ebp - 0x644]
call fcn.00427510
cmp eax, 0xffffffff
jne 0x4257bb
push 0
push str.systemprofile
lea ecx, [ebp - 0x644]
call fcn.00427510
cmp eax, 0xffffffff
jne 0x4257bb
lea eax, [ebp - 0x644]
mov ecx, ebx
push eax
call fcn.0041e810
jmp 0x4257c7
push 0x6097e8
mov ecx, ebx
call fcn.00405d50
lea ecx, [ebp - 0x644]
call fcn.00405db0
lea ecx, [ebp + 0xc]
call fcn.00405db0
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.005cabbc
mov esp, ebp
pop ebp
ret