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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff2c6
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 0x4248e3
push 0x6097e8
mov ecx, ebx
call fcn.00405c70
mov ecx, dword [ebp + 0x20]
cmp ecx, 8
jb 0x42535a
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00407310
jmp 0x42535a
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.00407020
add esp, 0x10
test eax, eax
jne 0x424974
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005d4960
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00426a20
lea edi, [ebp - 0x218]
add esp, 0x1c
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x424935
mov eax, dword [0x609b38]
mov ecx, ebx
mov dword [edi], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00405c70
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x42535a
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00407310
jmp 0x42535a
push 3
cmp edi, 8
lea eax, [ebp + 0xc]
push 0x60c1c0
cmovae eax, dword [ebp + 0xc]
push esi
push eax
call fcn.00407020
add esp, 0x10
test eax, eax
jne 0x4249e9
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005d4960
push 0
push 5
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00426a20
lea edi, [ebp - 0x218]
add esp, 0x1c
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4249c3
mov eax, dword [0x609b38]
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00405c70
jmp 0x425352
lea eax, [ebp + 0xc]
push str.desktop
push eax
call fcn.00423d60
add esp, 8
test al, al
je 0x424a46
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 0x424a20
mov eax, dword [0x609b38]
mov ecx, ebx
mov dword [edi], eax
lea eax, [ebp - 0x424]
push eax
call fcn.00405c70
jmp 0x425352
lea eax, [ebp + 0xc]
push 0x60c1d8
push eax
call fcn.00423d60
add esp, 8
test al, al
je 0x424a8e
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 0x424a80
jmp 0x424a2c
lea eax, [ebp + 0xc]
push str.program
push eax
call fcn.00423d60
add esp, 8
test al, al
je 0x424b5d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005d4960
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00426a20
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 0x424ae0
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jl 0x4249d6
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.005d4960
push 3
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.005e040c
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 0x424b30
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.00405c70
jmp 0x425352
lea eax, [ebp + 0xc]
push str.curr
push eax
call fcn.00423d60
add esp, 8
test al, al
je 0x424bc6
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.005d4960
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.005d63e0
xor ecx, ecx
add esp, 8
mov word [eax + 2], cx
lea eax, [ebp - 0x424]
push eax
mov ecx, ebx
call fcn.00405c70
jmp 0x425352
lea eax, [ebp + 0xc]
push str.temp
push eax
call fcn.00423d60
add esp, 8
test al, al
je 0x424cef
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005d4960
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.005d4960
add esp, 0x18
call fcn.00425650
test al, al
je 0x424c80
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00426a20
add esp, 0x10
test eax, eax
je 0x424cdc
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x424c40
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.00405c70
jmp 0x425352
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 0x424cb4
sub ecx, edx
sar ecx, 1
jne 0x424cdc
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.00405c70
jmp 0x425352
lea eax, [ebp + 0xc]
push str.recirle
push eax
call fcn.00423d60
add esp, 8
test al, al
je 0x424d3f
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.005d4960
push 0
push 0xa
lea eax, [ebp - 0x424]
push eax
push 0
call fcn.00426a20
add esp, 0x1c
lea eax, [ebp - 0x424]
mov ecx, ebx
push eax
call fcn.00405c70
jmp 0x425352
lea eax, [ebp + 0xc]
push str.downloads
push eax
call fcn.00423d60
add esp, 8
test al, al
je 0x424e9e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005d4960
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00426a20
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 0x424d90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
je 0x424e11
push 0x5c
push eax
call fcn.005d63e0
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 0x424dc1
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.00405c70
jmp 0x425352
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 0x424e30
sub ecx, edx
sar ecx, 1
je 0x424e8b
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x424e50
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.00405c70
jmp 0x425352
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.005d4960
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 0x424ef4
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.0040ada0
lea eax, [ebp + 0xc]
push str.locallow
push eax
call fcn.00423d60
add esp, 8
test al, al
je 0x425012
push 0
push 0x1a
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.00426a20
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.00405c70
push str.LocalLow
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 2
call fcn.00405c70
push str.Roaming
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 3
call fcn.00405c70
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.004323d0
add esp, 0xc
lea ecx, [ebp - 0x65c]
call fcn.00405cd0
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 2
call fcn.00405cd0
cmp dword [ebp - 0x678], 8
lea eax, [ebp - 0x68c]
cmovae eax, dword [ebp - 0x68c]
push eax
call fcn.0041ff30
add esp, 4
test al, al
je 0x425007
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x644]
call fcn.004070f0
lea ecx, [ebp - 0x68c]
jmp 0x4252d3
lea eax, [ebp + 0xc]
push str.roaming
push eax
call fcn.00423d60
add esp, 8
test al, al
jne 0x4251d5
lea eax, [ebp + 0xc]
push str.Roaming
push eax
call fcn.00423d60
add esp, 8
test al, al
jne 0x4251d5
lea eax, [ebp + 0xc]
push str.local
push eax
call fcn.00423d60
add esp, 8
test al, al
je 0x425160
push 0
push 0x1c
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.00426a20
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x62c]
push eax
call fcn.0041ff30
add esp, 4
test al, al
je 0x4250a9
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x644]
call fcn.0040ada0
jmp 0x4252dc
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6a4]
call fcn.00413500
push str.Local
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 8
call fcn.00405c70
push str.LocalLow
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 9
call fcn.00405c70
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.004323d0
add esp, 0xc
lea ecx, [ebp - 0x674]
call fcn.00405cd0
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 8
call fcn.00405cd0
cmp dword [ebp - 0x690], 8
lea eax, [ebp - 0x6a4]
cmovae eax, dword [ebp - 0x6a4]
push eax
call fcn.0041ff30
add esp, 4
test al, al
je 0x425155
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6a4]
push eax
lea ecx, [ebp - 0x644]
call fcn.004070f0
lea ecx, [ebp - 0x6a4]
jmp 0x4252d3
lea eax, [ebp + 0xc]
push str.system
push eax
call fcn.00423d60
add esp, 8
test al, al
je 0x4251c5
push 0
push 0x29
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.00426a20
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x62c]
push eax
call fcn.0041ff30
add esp, 4
test al, al
je 0x4252dc
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x644]
call fcn.0040ada0
jmp 0x4252dc
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0041e3b0
jmp 0x425347
push 0
push 0x1a
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.00426a20
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x62c]
push eax
call fcn.0041ff30
add esp, 4
test al, al
je 0x425221
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x644]
call fcn.0040ada0
jmp 0x4252dc
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6bc]
call fcn.00413500
push str.Roaming
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 5
call fcn.00405c70
push str.LocalLow
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 6
call fcn.00405c70
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.004323d0
add esp, 0xc
lea ecx, [ebp - 0x674]
call fcn.00405cd0
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 5
call fcn.00405cd0
cmp dword [ebp - 0x6a8], 8
lea eax, [ebp - 0x6bc]
cmovae eax, dword [ebp - 0x6bc]
push eax
call fcn.0041ff30
add esp, 4
test al, al
je 0x4252cd
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x644]
call fcn.004070f0
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 1
call fcn.00405cd0
cmp dword [ebp - 0x630], 8
lea eax, [ebp - 0x644]
cmovae eax, dword [ebp - 0x644]
push eax
call fcn.0041ff30
add esp, 4
test al, al
je 0x42533b
push 0
push str.system32
lea ecx, [ebp - 0x644]
call fcn.00427090
cmp eax, 0xffffffff
jne 0x42533b
push 0
push str.systemprofile
lea ecx, [ebp - 0x644]
call fcn.00427090
cmp eax, 0xffffffff
jne 0x42533b
lea eax, [ebp - 0x644]
mov ecx, ebx
push eax
call fcn.0041e3b0
jmp 0x425347
push 0x6097e8
mov ecx, ebx
call fcn.00405c70
lea ecx, [ebp - 0x644]
call fcn.00405cd0
lea ecx, [ebp + 0xc]
call fcn.00405cd0
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.005caa5c
mov esp, ebp
pop ebp
ret