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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a74c6
mov eax, dword fs:[0]
push eax
sub esp, 0x6bc
mov eax, dword [0x632a40]
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 0x41cac9
xor eax, eax
mov dword [ebx + 0x14], 7
push eax
mov dword [ebx + 0x10], 0
push 0x623880
mov word [ebx], ax
call fcn.00404db0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x41d492
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00405130
jmp 0x41d492
push 0x625d28
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41cb4f
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0057ff70
add esp, 8
lea edx, [ebp - 0x218]
push 0x26
call fcn.0041d660
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 0x41cb10
mov eax, dword [0x623ae4]
mov ecx, ebx
mov dword [edi], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00404a90
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x41d492
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00405130
jmp 0x41d492
push 0x625d30
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41cbb6
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0057ff70
add esp, 8
lea edx, [ebp - 0x218]
push 5
call fcn.0041d660
lea edi, [ebp - 0x218]
add esp, 8
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x41cb90
mov eax, dword [0x623ae4]
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00404a90
jmp 0x41d48a
push str.desktop
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41cc07
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 0x41cbe1
mov eax, dword [0x623ae4]
mov ecx, ebx
mov dword [edi], eax
lea eax, [ebp - 0x428]
push eax
call fcn.00404a90
jmp 0x41d48a
push 0x625d48
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41cc41
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 0x41cc33
jmp 0x41cbed
push str.program
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41cd00
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0057ff70
add esp, 8
lea edx, [ebp - 0x218]
push 0x26
call fcn.0041d660
lea ecx, [ebp - 0x218]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cc84
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jl 0x41cba3
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0x218]
push 3
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00589247
lea edi, [ebp - 0x428]
add esp, 0xc
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41ccd3
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.00404a90
jmp 0x41d48a
push str.curr
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41cd64
push 0x208
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0057ff70
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.0057eff0
xor ecx, ecx
add esp, 8
mov word [eax + 2], cx
lea eax, [ebp - 0x428]
push eax
mov ecx, ebx
call fcn.00404a90
jmp 0x41d48a
push str.temp
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41ce7f
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x208
push 0
push eax
call fcn.0057ff70
add esp, 0xc
call fcn.0041d4b0
test al, al
je 0x41ce10
push ecx
push 0x1c
lea edx, [ebp - 0x218]
call fcn.0041d660
add esp, 8
test eax, eax
je 0x41ce6c
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x41cdd0
mov eax, dword [str.Temp_]
mov dword [ecx], eax
mov eax, dword [0x625d9c]
mov dword [ecx + 4], eax
mov eax, dword [0x625da0]
mov dword [ecx + 8], eax
mov ax, word [0x625da4]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.00404a90
jmp 0x41d48a
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 0x41ce44
sub ecx, edx
sar ecx, 1
jne 0x41ce6c
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.00404a90
jmp 0x41d48a
push str.recirle
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41cec8
push 0x208
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0057ff70
add esp, 8
lea edx, [ebp - 0x428]
push 0xa
call fcn.0041d660
add esp, 8
lea eax, [ebp - 0x428]
mov ecx, ebx
push eax
call fcn.00404a90
jmp 0x41d48a
push str.downloads
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41d01e
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0057ff70
add esp, 8
lea edx, [ebp - 0x218]
push 0x10
call fcn.0041d660
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 0x41cf10
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
je 0x41cf91
push 0x5c
push eax
call fcn.0057eff0
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 0x41cf41
mov eax, dword [0x625dd8]
mov dword [ecx], eax
mov eax, dword [0x625ddc]
mov dword [ecx + 4], eax
mov eax, dword [0x625de0]
mov dword [ecx + 8], eax
mov eax, dword [0x625de4]
mov dword [ecx + 0xc], eax
mov eax, dword [0x625de8]
mov dword [ecx + 0x10], eax
mov ax, word [0x625dec]
mov word [ecx + 0x14], ax
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.00404a90
jmp 0x41d48a
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 0x41cfb0
sub ecx, edx
sar ecx, 1
je 0x41d00b
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x41cfd0
mov eax, dword [str.Downloads_]
mov dword [ecx], eax
mov eax, dword [0x625e0c]
mov dword [ecx + 4], eax
mov eax, dword [0x625e10]
mov dword [ecx + 8], eax
mov eax, dword [0x625e14]
mov dword [ecx + 0xc], eax
mov eax, dword [0x625e18]
mov dword [ecx + 0x10], eax
mov eax, dword [0x625e1c]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00404a90
jmp 0x41d48a
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.0057ff70
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 0x41d074
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.004049c0
push str.locallow
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41d184
push ecx
push 0x1a
lea edx, [ebp - 0x630]
call fcn.0041d660
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.00404a90
push str.LocalLow
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 2
call fcn.00404a90
push str.Roaming
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 3
call fcn.00404a90
lea eax, [ebp - 0x678]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x660]
lea ecx, [ebp - 0x690]
call fcn.00422010
add esp, 4
lea ecx, [ebp - 0x660]
call fcn.00403d40
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 2
call fcn.00403d40
cmp dword [ebp - 0x67c], 8
lea ecx, [ebp - 0x690]
cmovae ecx, dword [ebp - 0x690]
call fcn.00419480
test al, al
je 0x41d179
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp - 0x648]
call fcn.00404eb0
lea ecx, [ebp - 0x690]
jmp 0x41d411
push str.roaming
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
je 0x41d321
push str.Roaming
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
je 0x41d321
push str.local
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41d2b8
push ecx
push 0x1c
lea edx, [ebp - 0x630]
call fcn.0041d660
add esp, 8
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x630]
call fcn.00419480
test al, al
je 0x41d207
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x648]
call fcn.004049c0
jmp 0x41d41a
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x6a8]
call fcn.00404af0
push str.Local
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 8
call fcn.00404a90
push str.LocalLow
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 9
call fcn.00404a90
lea eax, [ebp - 0x660]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x678]
lea ecx, [ebp - 0x6a8]
call fcn.00422010
add esp, 4
lea ecx, [ebp - 0x678]
call fcn.00403d40
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 8
call fcn.00403d40
cmp dword [ebp - 0x694], 8
lea ecx, [ebp - 0x6a8]
cmovae ecx, dword [ebp - 0x6a8]
call fcn.00419480
test al, al
je 0x41d2ad
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6a8]
push eax
lea ecx, [ebp - 0x648]
call fcn.00404eb0
lea ecx, [ebp - 0x6a8]
jmp 0x41d411
push str.system
lea ecx, [ebp + 8]
call fcn.0040dac0
test eax, eax
jne 0x41d311
push ecx
push 0x29
lea edx, [ebp - 0x630]
call fcn.0041d660
add esp, 8
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x630]
call fcn.00419480
test al, al
je 0x41d41a
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x648]
call fcn.004049c0
jmp 0x41d41a
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.00405ba0
jmp 0x41d47f
push ecx
push 0x1a
lea edx, [ebp - 0x630]
call fcn.0041d660
add esp, 8
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x630]
call fcn.00419480
test al, al
je 0x41d365
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x648]
call fcn.004049c0
jmp 0x41d41a
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x6c0]
call fcn.00404af0
push str.Roaming
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 5
call fcn.00404a90
push str.LocalLow
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 6
call fcn.00404a90
lea eax, [ebp - 0x660]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x678]
lea ecx, [ebp - 0x6c0]
call fcn.00422010
add esp, 4
lea ecx, [ebp - 0x678]
call fcn.00403d40
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 5
call fcn.00403d40
cmp dword [ebp - 0x6ac], 8
lea ecx, [ebp - 0x6c0]
cmovae ecx, dword [ebp - 0x6c0]
call fcn.00419480
test al, al
je 0x41d40b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6c0]
push eax
lea ecx, [ebp - 0x648]
call fcn.00404eb0
lea ecx, [ebp - 0x6c0]
mov byte [ebp - 4], 1
call fcn.00403d40
cmp dword [ebp - 0x634], 8
lea ecx, [ebp - 0x648]
cmovae ecx, dword [ebp - 0x648]
call fcn.00419480
test al, al
je 0x41d473
push ecx
push str.system32
lea ecx, [ebp - 0x648]
call fcn.00404960
cmp eax, 0xffffffff
jne 0x41d473
push ecx
push str.systemprofile
lea ecx, [ebp - 0x648]
call fcn.00404960
cmp eax, 0xffffffff
jne 0x41d473
lea eax, [ebp - 0x648]
mov ecx, ebx
push eax
call fcn.00405ba0
jmp 0x41d47f
push 0x623880
mov ecx, ebx
call fcn.00404a90
lea ecx, [ebp - 0x648]
call fcn.00403d40
lea ecx, [ebp + 8]
call fcn.00403d40
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.00579ec9
mov esp, ebp
pop ebp
ret