Function at 0x403393
Capabilities:
Check if file exists
Create process on windows
Delete file
Get common file path
Get file attributes
Hide graphical window
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2087c
call fcn.0042a630
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x1c]
lea eax, [ebp - 0x414]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4033d5
xor al, al
jmp 0x4036e2
lea eax, [ebp - 0x414]
push eax
call fcn.0042a04b
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push 0x44ac6c
push dword [0x45c174]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042a521
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call fcn.0042a57d
xor ecx, ecx
push str.64.exe
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.0042a4b5
lea eax, [ebp - 0x20c]
push eax
push str.RCVMMAP64
call fcn.004088f5
add esp, 0x28
test al, al
jne 0x4034dc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4034dc
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x44acac
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0042a57d
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0042a4b5
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042a521
lea eax, [ebp - 0x20c]
push eax
push str.RCVMMAP64
call fcn.004088f5
add esp, 0x28
test al, al
je 0x4033ce
test edi, edi
je 0x40350e
cmp byte [0x45c3d0], 0
lea eax, [ebp - 0x414]
push edi
push eax
mov eax, 0x44acbc
mov ecx, 0x44acc4
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push str.__s___s__e___s___s
jmp 0x4035cd
test esi, esi
je 0x40357b
lea eax, [ebp - 0x20828]
push esi
push eax
call fcn.004087e6
pop ecx
pop ecx
mov eax, dword [eax]
test eax, eax
je 0x40352b
mov eax, dword [eax]
jmp 0x40352d
xor eax, eax
cmp byte [0x45c3d0], 0
mov ecx, 0x44acc4
push eax
lea eax, [ebp - 0x414]
push eax
mov eax, 0x44acbc
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push str.__s___s__e___s___p___s_
lea eax, [ebp - 0x20824]
push 0x10000
push eax
call fcn.0042a3e6
mov ecx, dword [ebp - 0x20828]
add esp, 0x1c
test ecx, ecx
je 0x4035e1
call fcn.00403368
jmp 0x4035e1
cmp dword [ebp + 0x18], 0
lea eax, [ebp - 0x414]
mov ecx, 0x44acc4
je 0x4035ae
push dword [ebp + 0x18]
cmp byte [0x45c3d0], 0
push eax
mov eax, 0x44acbc
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push str.__s___s__e___s___p__d
jmp 0x4035cd
cmp byte [0x45c3d0], 0
push 0
push eax
mov eax, 0x44acbc
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push str.__s___s__e___s_
lea eax, [ebp - 0x20824]
push 0x10000
push eax
call fcn.0042a3e6
add esp, 0x1c
and dword [ebp - 0x20878], 0
lea eax, [ebp - 0x20874]
push 0x3c
push 0
push eax
mov dword [ebp - 0x2087c], 0x44
call fcn.0042a420
add esp, 0xc
lea eax, [ebp - 0x824]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x20838], xmm0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp + 0x20]
mov word [ebp - 0x2084c], ax
lea eax, [ebp - 0x20838]
push eax
lea eax, [ebp - 0x2087c]
mov dword [ebp - 0x20850], 1
push eax
lea eax, [ebp - 0x824]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20824]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403695
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x52a05c
push 0
call fcn.0041cd7a
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4033ce
cmp byte [ebp + 0xc], 0
je 0x4036ca
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push dword [ebp - 0x20838]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x20838]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20834]
call esi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret