Function at 0x42cb70
Capabilities:
Check if file exists
Create directory
Get file attributes
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57e906
push eax
mov eax, dword [0x63e518]
mov dword fs:[0], esp
sub esp, 0x218
test eax, eax
push ebx
push esi
push edi
jne 0x42cba4
call fcn.0042bbd0
test al, al
je 0x42ce95
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
mov edx, dword [0x63e518]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push str.LocalPathW
push edx
mov dword [esp + 0x24], 0x208
call esi
test eax, eax
jne 0x42cc0a
mov ecx, dword [esp + 0x234]
lea eax, [esp + 0x1c]
push eax
call fcn.00402b60
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
add esp, 0x224
ret
mov ecx, dword [0x639ad4]
mov dword [esp + 0x10], ecx
mov eax, dword [0x63e518]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
push str.LocalPath
push eax
mov dword [esp + 0x244], 0
call esi
test eax, eax
jne 0x42cca2
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.0056a541
lea edx, [esp + 0xc]
mov edi, eax
mov eax, dword [0x63e518]
push edx
push edi
push 0
push 0
push str.LocalPath
push eax
call esi
test eax, eax
jne 0x42cca2
mov ecx, dword [esp + 0x234]
push eax
push edi
call fcn.004024c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.0056a100
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
add esp, 0x224
ret
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42ce81
lea edx, [esp + 0xc]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x24]
push str.Personal
push eax
call esi
test eax, eax
jne 0x42ce76
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.0056a541
lea edx, [esp + 0xc]
mov ebx, eax
mov eax, dword [esp + 0x14]
push edx
push ebx
push 0
push 0
push str.Personal
push eax
call esi
test eax, eax
jne 0x42ce76
mov ecx, dword [0x639ad4]
mov dword [esp + 0x18], ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x22c], 1
mov al, byte [ecx + ebx - 1]
cmp al, 0x5c
mov eax, 0x63e040
je 0x42cd3e
mov eax, 0x617168
push ebp
push eax
push ebx
lea edx, [esp + 0x24]
push str._s_sDownloads_
push edx
call fcn.00562ecb
mov esi, dword [esp + 0x248]
mov ebp, dword [esp + 0x2c]
add esp, 0x10
mov ecx, esi
call fcn.00401070
test ebp, ebp
je 0x42cdb1
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42cdb1
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push ebp
push eax
push eax
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x42cdb1
lea eax, [eax + eax + 2]
push eax
call fcn.0056649c
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x42cdb1
mov ecx, dword [esi + 8]
push ecx
push eax
push 0xffffffffffffffff
push ebp
push 0
push 0
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
pop ebp
test eax, eax
jne 0x42cdbb
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esi]
test eax, eax
jne 0x42cdcd
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42ce2c
mov ecx, esi
call fcn.00401070
test ebx, ebx
je 0x42ce2c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42ce2c
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push eax
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x42ce2c
lea edx, [eax + eax + 2]
push edx
call fcn.0056649c
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x42ce2c
mov ecx, dword [esi + 8]
push ecx
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
mov dword [esi + 8], eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x22c], 0
call fcn.0056a100
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.0056a100
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
add esp, 0x224
ret
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.0056a100
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret