Function at 0x442c40
Capabilities:
Get common file path
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599b58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
add eax, 0x48
mov ecx, eax
mov dword [esp + 0x28], eax
call fcn.00419f30
call fcn.0040bce0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x442c9c
push 0x80004005
call fcn.0040c390
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x40], 0
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x442ccc
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], 1
mov ecx, 1
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x442d05
push 0x104
lea ecx, [esp + 0x1c]
call fcn.0040c110
mov ebx, dword [esp + 0x18]
push 0
push 0x10
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebx - 8]
mov dword [esp + 0x34], eax
push ebx
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x442e49
cmp eax, dword [ebx - 8]
jg 0x442e49
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
mov edx, reloc.OLEAUT32.dll_SysReAllocString
push 0x5bedb8
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
lea ecx, [esp + 0x2c]
call fcn.00516c80
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.0040b7d0
mov byte [esp + 0x40], 1
or edi, 0xffffffff
mov edx, dword [esp + 0x24]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x442d8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jne 0x442e8c
push 0x5bedb8
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.00516c80
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 3
call fcn.0040b7d0
mov byte [esp + 0x40], 1
mov ecx, edi
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x442de5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jne 0x442e53
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x442e15
push 0x104
lea ecx, [esp + 0x18]
call fcn.0040c110
mov esi, dword [esp + 0x14]
push 0
push 0x19
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi - 8]
mov dword [esp + 0x28], eax
push esi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x442e49
cmp eax, dword [esi - 8]
jg 0x442e49
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x442f53
push 0x80070057
call fcn.0040c390
mov dword [esp + 0x24], 1
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x442e77
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x40], 4
jmp 0x442ec3
mov dword [esp + 0x24], 1
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x442eb0
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x40], 5
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x442ee9
push 0x104
lea ecx, [esp + 0x24]
call fcn.0040c110
mov edi, dword [esp + 0x20]
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x442f32
push dword [edi - 8]
push edi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x442e49
cmp eax, dword [edi - 8]
jg 0x442e49
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0040b7d0
mov esi, dword [esp + 0x14]
lea edx, [edi - 0x10]
mov byte [esp + 0x40], 1
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x442f53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x2c]
call fcn.004fbab0
mov ecx, dword [esp + 0x1c]
add ecx, 0x54
mov byte [esp + 0x40], 6
call fcn.00419f30
cmp dword [esp + 0x30], 0
je 0x442f8a
push dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.00443060
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x24], 0
je 0x442fa7
push dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
call fcn.00443060
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], 0
je 0x442fc7
push dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
call fcn.00443060
mov eax, dword [esp + 0x2c]
lea edx, [eax - 0x10]
mov byte [esp + 0x40], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x442fe5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x40], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x443003
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x443022
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret