Function at 0x40f430
Capabilities:
Check if file exists
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c120
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x78], edi
mov eax, dword [ebp + 8]
lea esi, [edi + 0x18]
mov dword [ebp - 0x74], eax
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x7c], eax
je 0x40f48a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40f47b
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f7a7
cmp byte [edi + 0x108], 0
je 0x40f594
cmp dword [edi + 0x100], 0
je 0x40f594
call fcn.0041be00
cmp eax, 1
je 0x40f7a7
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 9
jb 0x40f4fc
mov dword [ebp - 0x78], esi
lea eax, [ecx + 9]
mov dword [ebp - 0x74], eax
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x40f4d9
mov eax, dword [esi]
mov dword [ebp - 0x78], eax
push 0x12
lea eax, [eax + ecx*2]
push str.C:Users_
push eax
call fcn.004f4a40
mov eax, dword [ebp - 0x78]
add esp, 0xc
mov ecx, dword [ebp - 0x74]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, esi
jmp 0x40f513
push 9
push str.C:Users_
mov byte [ebp - 0x74], 0
mov ecx, esi
push dword [ebp - 0x74]
push 9
call fcn.00408630
cmp dword [edi + 0x104], 8
lea ecx, [edi + 0xf0]
jb 0x40f528
mov ecx, dword [edi + 0xf0]
push dword [edi + 0x100]
push ecx
mov ecx, eax
call fcn.00407f10
mov edi, eax
mov edx, dword [edi + 0x14]
mov ecx, edx
mov eax, dword [edi + 0x10]
sub ecx, eax
cmp ecx, 0x11
jb 0x40f578
lea ecx, [eax + 0x11]
mov dword [ebp - 0x74], ecx
mov dword [edi + 0x10], ecx
cmp edx, 8
jb 0x40f557
mov edi, dword [edi]
push 0x22
lea eax, [edi + eax*2]
push str.AppDataLocalLow
push eax
call fcn.004f4a40
mov eax, dword [ebp - 0x74]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x40f7a7
push 0x11
push str.AppDataLocalLow
mov byte [ebp - 0x74], 0
mov ecx, edi
push dword [ebp - 0x74]
push 0x11
call fcn.00408630
jmp 0x40f7a7
push 0x26
xor eax, eax
mov dword [ebp - 0x30], 0
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00403ab0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x40
xor eax, eax
mov dword [ebp - 0x18], 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00403ab0
push ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x74], reloc.WS2_32.dll_accept
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040f7f0
mov edi, eax
cmp esi, edi
je 0x40f632
mov ecx, esi
call fcn.00403ca0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40f66c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f662
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f7d0
push edx
push ecx
call fcn.004f2ead
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40f6bd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f7d5
push edx
push ecx
call fcn.004f2ead
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x40f712
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f7da
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov eax, dword [ebp - 0x78]
cmp dword [eax + 0x28], 0
ja 0x40f7a7
push 0x51effc
lea eax, [ebp - 0x70]
push eax
call fcn.004102d0
mov edi, eax
cmp esi, edi
je 0x40f75d
mov ecx, esi
call fcn.00403ca0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40f793
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f789
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f7df
push edx
push ecx
call fcn.004f2ead
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov ecx, dword [ebp - 0x7c]
push esi
call fcn.004031b0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret 4
call fcn.004f855c
call fcn.004f855c
call fcn.004f855c
call fcn.004f855c
int3