Function at 0x100622f8
Capabilities:
Check if file exists
Get common file path
Query environment variable

Disassembly:
push 0x6b4
mov eax, 0x101e06aa
call fcn.1005d984
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x6c0], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x1c], ebx
jne 0x1006232b
push 0x10270410
mov ecx, esi
call fcn.100025f0
jmp 0x10062c59
push 0x101f2e28
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x1006237b
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.10079740
push ebx
push 0x26
lea eax, [ebp - 0x420]
push eax
push ebx
call fcn.100635d4
lea eax, [ebp - 0x420]
push 0x102704b4
push eax
call fcn.100813e6
add esp, 0x24
lea eax, [ebp - 0x420]
push eax
jmp 0x1006231f
push 0x101f2e30
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x100623a3
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.10079740
push ebx
push 5
jmp 0x10062351
push str.desktop
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x100623df
push ebx
push ebx
lea eax, [ebp - 0x62c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x62c]
push 0x102704b4
push eax
call fcn.100813e6
pop ecx
pop ecx
lea eax, [ebp - 0x62c]
jmp 0x10062378
push 0x101f2e48
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x100623f5
push ebx
push 6
jmp 0x100623b6
push str.program
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x10062483
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
push ebx
push eax
call fcn.10079740
push ebx
push 0x26
lea eax, [ebp - 0x420]
push eax
push ebx
call fcn.100635d4
lea eax, [ebp - 0x420]
push eax
call fcn.1008133f
add esp, 0x20
cmp eax, 3
jl 0x10062372
push edi
lea eax, [ebp - 0x62c]
push ebx
push eax
call fcn.10079740
push 3
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.100875e3
lea eax, [ebp - 0x62c]
push str.Program_Files_
push eax
call fcn.100813e6
add esp, 0x20
lea eax, [ebp - 0x62c]
jmp 0x10062378
push str.curr
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x100624d4
push 0x208
lea eax, [ebp - 0x62c]
push ebx
push eax
call fcn.10079740
add esp, 0xc
lea eax, [ebp - 0x62c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x62c]
push 0x5c
push eax
call fcn.10079e91
pop ecx
pop ecx
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x10062478
push str.temp
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x1006259e
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
push ebx
push eax
call fcn.10079740
push edi
lea eax, [ebp - 0x62c]
push ebx
push eax
call fcn.10079740
add esp, 0x18
call fcn.10062f99
test al, al
je 0x10062549
push ebx
push 0x1c
lea eax, [ebp - 0x420]
push eax
push ebx
call fcn.100635d4
add esp, 0x10
test eax, eax
je 0x10062372
push str.Temp_
lea eax, [ebp - 0x420]
push eax
call fcn.100813e6
pop ecx
pop ecx
jmp 0x10062372
lea eax, [ebp - 0x62c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.1008133f
pop ecx
test eax, eax
jne 0x10062372
push edi
lea eax, [ebp - 0x420]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x10062372
push str.recirle
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x100625d9
push 0x208
lea eax, [ebp - 0x62c]
push ebx
push eax
call fcn.10079740
push ebx
push 0xa
lea eax, [ebp - 0x62c]
push eax
push ebx
call fcn.100635d4
add esp, 0x1c
jmp 0x10062478
push str.downloads
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x10062680
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.10079740
push ebx
push 0x10
lea eax, [ebp - 0x420]
push eax
push ebx
call fcn.100635d4
lea eax, [ebp - 0x420]
push eax
call fcn.1008133f
add esp, 0x20
test eax, eax
lea eax, [ebp - 0x420]
je 0x10062650
push 0x5c
push eax
call fcn.10079e91
xor ecx, ecx
push 0x101f2ed8
mov word [eax + 2], cx
lea eax, [ebp - 0x420]
push eax
call fcn.100813e6
add esp, 0x10
jmp 0x10062372
push 0x104
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x420]
push eax
call fcn.1008133f
pop ecx
test eax, eax
je 0x10062372
push str.Downloads_
jmp 0x10062536
xor eax, eax
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], ebx
mov word [ebp - 0x644], ax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.10079740
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x218]
push str.AppDataLocalLow_
push eax
call fcn.100813e6
cmp word [ebp - 0x218], 0
pop ecx
pop ecx
jne 0x100626ea
mov eax, ebx
jmp 0x100626f7
lea eax, [ebp - 0x218]
push eax
call fcn.1008133f
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x644]
call fcn.10002750
push str.locallow
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x1006286d
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.100635d4
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 7
xor eax, eax
mov dword [ebp - 0x67c], ebx
pop edi
mov dword [ebp - 0x678], edi
mov word [ebp - 0x68c], ax
cmp word [ebp - 0x218], ax
jne 0x10062764
mov eax, ebx
jmp 0x10062771
lea eax, [ebp - 0x218]
push eax
call fcn.1008133f
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x68c]
call fcn.10002750
mov dword [ebp - 0x664], ebx
xor eax, eax
mov ebx, str.LocalLow
mov byte [ebp - 4], 2
push ebx
mov dword [ebp - 0x660], edi
mov word [ebp - 0x674], ax
call fcn.1008133f
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x674]
call fcn.10002750
and dword [ebp - 0x64c], 0
xor eax, eax
mov ebx, str.Roaming
mov byte [ebp - 4], 3
push ebx
mov dword [ebp - 0x648], edi
mov word [ebp - 0x65c], ax
call fcn.1008133f
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x65c]
call fcn.10002750
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.10060dc5
add esp, 0xc
lea ecx, [ebp - 0x65c]
xor ebx, ebx
push ebx
push 1
call fcn.10002690
push ebx
push 1
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 2
call fcn.10002690
cmp dword [ebp - 0x678], 8
lea eax, [ebp - 0x68c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x68c]
push eax
call edi
test eax, eax
je 0x10062862
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x644]
call fcn.10002960
lea ecx, [ebp - 0x68c]
jmp 0x10062bca
push str.roaming
lea ecx, [ebp + 0xc]
call fcn.100218cf
mov ebx, str.Roaming
test eax, eax
je 0x10062a6a
push ebx
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
je 0x10062a6a
push str.local
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x100629f4
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push 0x1c
push eax
push ebx
call fcn.100635d4
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x10062a3e
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6a4]
call fcn.10004160
mov dword [ebp - 0x64c], ebx
xor eax, eax
mov ebx, str.Local
mov byte [ebp - 4], 8
push ebx
mov dword [ebp - 0x648], 7
mov word [ebp - 0x65c], ax
call fcn.1008133f
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x65c]
call fcn.10002750
and dword [ebp - 0x664], 0
xor eax, eax
mov ebx, str.LocalLow
mov byte [ebp - 4], 9
push ebx
mov dword [ebp - 0x660], 7
mov word [ebp - 0x674], ax
call fcn.1008133f
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x674]
call fcn.10002750
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.10060dc5
add esp, 0xc
lea ecx, [ebp - 0x674]
xor ebx, ebx
push ebx
push 1
call fcn.10002690
push ebx
push 1
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 8
call fcn.10002690
cmp dword [ebp - 0x690], 8
lea eax, [ebp - 0x6a4]
cmovae eax, dword [ebp - 0x6a4]
push eax
call edi
test eax, eax
je 0x100629d8
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x6a4]
push eax
lea ecx, [ebp - 0x644]
call fcn.10002960
lea ecx, [ebp - 0x6a4]
jmp 0x10062bca
lea eax, [ebp - 0x218]
push eax
call fcn.1008133f
jmp 0x10062abd
push str.system
lea ecx, [ebp + 0xc]
call fcn.100218cf
test eax, eax
jne 0x10062a49
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push 0x29
push eax
push ebx
call fcn.100635d4
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x10062bd6
cmp word [ebp - 0x218], bx
jne 0x100629e3
jmp 0x10062aab
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.100046f0
push 0
push 1
lea ecx, [ebp - 0x644]
call fcn.10002690
push 0
jmp 0x10062c5a
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.100635d4
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x10062ad6
cmp word [ebp - 0x218], 0
jne 0x10062aaf
xor ebx, ebx
mov eax, ebx
jmp 0x10062abe
lea eax, [ebp - 0x218]
push eax
call fcn.1008133f
xor ebx, ebx
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x644]
call fcn.10002750
jmp 0x10062bd6
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6bc]
call fcn.10004160
and dword [ebp - 0x64c], 0
xor eax, eax
push ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x648], 7
mov word [ebp - 0x65c], ax
call fcn.1008133f
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x65c]
call fcn.10002750
and dword [ebp - 0x664], 0
xor eax, eax
mov ebx, str.LocalLow
mov byte [ebp - 4], 6
push ebx
mov dword [ebp - 0x660], 7
mov word [ebp - 0x674], ax
call fcn.1008133f
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x674]
call fcn.10002750
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.10060dc5
add esp, 0xc
lea ecx, [ebp - 0x674]
xor ebx, ebx
push ebx
push 1
call fcn.10002690
push ebx
push 1
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 5
call fcn.10002690
cmp dword [ebp - 0x6a8], 8
lea eax, [ebp - 0x6bc]
cmovae eax, dword [ebp - 0x6bc]
push eax
call edi
test eax, eax
je 0x10062bc4
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x644]
call fcn.10002960
lea ecx, [ebp - 0x6bc]
push ebx
push 1
mov byte [ebp - 4], 1
call fcn.10002690
cmp dword [ebp - 0x630], 8
lea eax, [ebp - 0x644]
cmovae eax, dword [ebp - 0x644]
push eax
call edi
test eax, eax
je 0x10062c3f
mov edi, str.system32
push edi
call fcn.1008133f
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x644]
call fcn.10004e50
cmp eax, 0xffffffff
jne 0x10062c3f
mov edi, str.systemprofile
push edi
call fcn.1008133f
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x644]
call fcn.10004e50
cmp eax, 0xffffffff
jne 0x10062c3f
lea eax, [ebp - 0x644]
mov ecx, esi
push eax
call fcn.100046f0
jmp 0x10062c4b
push 0x10270410
mov ecx, esi
call fcn.100025f0
push ebx
push 1
lea ecx, [ebp - 0x644]
call fcn.10002690
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.10002690
mov eax, esi
call fcn.1005d93f
ret