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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c6e6
mov eax, dword fs:[0]
push eax
sub esp, 0x6b8
mov eax, dword [0x10080440]
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 0x10017e63
push 0x1005f708
mov ecx, ebx
call fcn.1000f3c0
mov ecx, dword [ebp + 0x20]
cmp ecx, 8
jb 0x100188da
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10008830
jmp 0x100188da
mov edi, dword [ebp + 0x20]
lea eax, [ebp + 0xc]
push 3
cmp edi, 8
push 0x10062598
cmovae eax, dword [ebp + 0xc]
push esi
push eax
call fcn.1000f330
add esp, 0x10
test eax, eax
jne 0x10017ef4
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10044bd0
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.10019460
lea edi, [ebp - 0x218]
add esp, 0x1c
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10017eb5
mov eax, dword [0x10060020]
mov ecx, ebx
mov dword [edi], eax
lea eax, [ebp - 0x218]
push eax
call fcn.1000f3c0
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x100188da
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.10008830
jmp 0x100188da
push 3
cmp edi, 8
lea eax, [ebp + 0xc]
push 0x100625a0
cmovae eax, dword [ebp + 0xc]
push esi
push eax
call fcn.1000f330
add esp, 0x10
test eax, eax
jne 0x10017f69
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10044bd0
push 0
push 5
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.10019460
lea edi, [ebp - 0x218]
add esp, 0x1c
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10017f43
mov eax, dword [0x10060020]
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.1000f3c0
jmp 0x100188d2
lea eax, [ebp + 0xc]
push str.desktop
push eax
call fcn.10017720
add esp, 8
test al, al
je 0x10017fc6
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 0x10017fa0
mov eax, dword [0x10060020]
mov ecx, ebx
mov dword [edi], eax
lea eax, [ebp - 0x424]
push eax
call fcn.1000f3c0
jmp 0x100188d2
lea eax, [ebp + 0xc]
push 0x100625b8
push eax
call fcn.10017720
add esp, 8
test al, al
je 0x1001800e
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 0x10018000
jmp 0x10017fac
lea eax, [ebp + 0xc]
push str.program
push eax
call fcn.10017720
add esp, 8
test al, al
je 0x100180dd
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10044bd0
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.10019460
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 0x10018060
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jl 0x10017f56
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.10044bd0
push 3
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.1004b7bf
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 0x100180b0
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.1000f3c0
jmp 0x100188d2
lea eax, [ebp + 0xc]
push str.curr
push eax
call fcn.10017720
add esp, 8
test al, al
je 0x10018146
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.10044bd0
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.10046212
xor ecx, ecx
add esp, 8
mov word [eax + 2], cx
lea eax, [ebp - 0x424]
push eax
mov ecx, ebx
call fcn.1000f3c0
jmp 0x100188d2
lea eax, [ebp + 0xc]
push str.temp
push eax
call fcn.10017720
add esp, 8
test al, al
je 0x1001826f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10044bd0
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.10044bd0
add esp, 0x18
call fcn.10018bd0
test al, al
je 0x10018200
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.10019460
add esp, 0x10
test eax, eax
je 0x1001825c
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100181c0
mov eax, dword [str.Temp_]
mov dword [ecx], eax
mov eax, dword [0x1006260c]
mov dword [ecx + 4], eax
mov eax, dword [0x10062610]
mov dword [ecx + 8], eax
mov ax, word [0x10062614]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.1000f3c0
jmp 0x100188d2
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 0x10018234
sub ecx, edx
sar ecx, 1
jne 0x1001825c
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.1000f3c0
jmp 0x100188d2
lea eax, [ebp + 0xc]
push str.recirle
push eax
call fcn.10017720
add esp, 8
test al, al
je 0x100182bf
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.10044bd0
push 0
push 0xa
lea eax, [ebp - 0x424]
push eax
push 0
call fcn.10019460
add esp, 0x1c
lea eax, [ebp - 0x424]
mov ecx, ebx
push eax
call fcn.1000f3c0
jmp 0x100188d2
lea eax, [ebp + 0xc]
push str.downloads
push eax
call fcn.10017720
add esp, 8
test al, al
je 0x1001841e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10044bd0
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.10019460
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 0x10018310
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
je 0x10018391
push 0x5c
push eax
call fcn.10046212
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 0x10018341
mov eax, dword [0x10062648]
mov dword [ecx], eax
mov eax, dword [0x1006264c]
mov dword [ecx + 4], eax
mov eax, dword [0x10062650]
mov dword [ecx + 8], eax
mov eax, dword [0x10062654]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10062658]
mov dword [ecx + 0x10], eax
mov ax, word [0x1006265c]
mov word [ecx + 0x14], ax
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.1000f3c0
jmp 0x100188d2
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 0x100183b0
sub ecx, edx
sar ecx, 1
je 0x1001840b
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100183d0
mov eax, dword [str.Downloads_]
mov dword [ecx], eax
mov eax, dword [0x1006267c]
mov dword [ecx + 4], eax
mov eax, dword [0x10062680]
mov dword [ecx + 8], eax
mov eax, dword [0x10062684]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10062688]
mov dword [ecx + 0x10], eax
mov eax, dword [0x1006268c]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.1000f3c0
jmp 0x100188d2
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.10044bd0
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 0x10018474
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.1000f980
lea eax, [ebp + 0xc]
push str.locallow
push eax
call fcn.10017720
add esp, 8
test al, al
je 0x10018592
push 0
push 0x1a
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.10019460
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.1000f3c0
push str.LocalLow
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 2
call fcn.1000f3c0
push str.Roaming
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 3
call fcn.1000f3c0
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.1001d6d0
add esp, 0xc
lea ecx, [ebp - 0x65c]
call fcn.10007740
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 2
call fcn.10007740
cmp dword [ebp - 0x678], 8
lea eax, [ebp - 0x68c]
cmovae eax, dword [ebp - 0x68c]
push eax
call fcn.10016850
add esp, 4
test al, al
je 0x10018587
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x644]
call fcn.10008610
lea ecx, [ebp - 0x68c]
jmp 0x10018853
lea eax, [ebp + 0xc]
push str.roaming
push eax
call fcn.10017720
add esp, 8
test al, al
jne 0x10018755
lea eax, [ebp + 0xc]
push str.Roaming
push eax
call fcn.10017720
add esp, 8
test al, al
jne 0x10018755
lea eax, [ebp + 0xc]
push str.local
push eax
call fcn.10017720
add esp, 8
test al, al
je 0x100186e0
push 0
push 0x1c
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.10019460
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x62c]
push eax
call fcn.10016850
add esp, 4
test al, al
je 0x10018629
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x644]
call fcn.1000f980
jmp 0x1001885c
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6a4]
call fcn.10015620
push str.Local
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 8
call fcn.1000f3c0
push str.LocalLow
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 9
call fcn.1000f3c0
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.1001d6d0
add esp, 0xc
lea ecx, [ebp - 0x674]
call fcn.10007740
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 8
call fcn.10007740
cmp dword [ebp - 0x690], 8
lea eax, [ebp - 0x6a4]
cmovae eax, dword [ebp - 0x6a4]
push eax
call fcn.10016850
add esp, 4
test al, al
je 0x100186d5
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6a4]
push eax
lea ecx, [ebp - 0x644]
call fcn.10008610
lea ecx, [ebp - 0x6a4]
jmp 0x10018853
lea eax, [ebp + 0xc]
push str.system
push eax
call fcn.10017720
add esp, 8
test al, al
je 0x10018745
push 0
push 0x29
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.10019460
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x62c]
push eax
call fcn.10016850
add esp, 4
test al, al
je 0x1001885c
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x644]
call fcn.1000f980
jmp 0x1001885c
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.10015030
jmp 0x100188c7
push 0
push 0x1a
lea eax, [ebp - 0x62c]
push eax
push 0
call fcn.10019460
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x62c]
push eax
call fcn.10016850
add esp, 4
test al, al
je 0x100187a1
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x644]
call fcn.1000f980
jmp 0x1001885c
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x6bc]
call fcn.10015620
push str.Roaming
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 5
call fcn.1000f3c0
push str.LocalLow
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 6
call fcn.1000f3c0
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.1001d6d0
add esp, 0xc
lea ecx, [ebp - 0x674]
call fcn.10007740
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 5
call fcn.10007740
cmp dword [ebp - 0x6a8], 8
lea eax, [ebp - 0x6bc]
cmovae eax, dword [ebp - 0x6bc]
push eax
call fcn.10016850
add esp, 4
test al, al
je 0x1001884d
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x644]
call fcn.10008610
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 1
call fcn.10007740
cmp dword [ebp - 0x630], 8
lea eax, [ebp - 0x644]
cmovae eax, dword [ebp - 0x644]
push eax
call fcn.10016850
add esp, 4
test al, al
je 0x100188bb
push 0
push str.system32
lea ecx, [ebp - 0x644]
call fcn.100194e0
cmp eax, 0xffffffff
jne 0x100188bb
push 0
push str.systemprofile
lea ecx, [ebp - 0x644]
call fcn.100194e0
cmp eax, 0xffffffff
jne 0x100188bb
lea eax, [ebp - 0x644]
mov ecx, ebx
push eax
call fcn.10015030
jmp 0x100188c7
push 0x1005f708
mov ecx, ebx
call fcn.1000f3c0
lea ecx, [ebp - 0x644]
call fcn.10007740
lea ecx, [ebp + 0xc]
call fcn.10007740
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.1002c8d2
mov esp, ebp
pop ebp
ret