Function at 0x404390
Capabilities:
Create process on windows
Delete file
Get common file path
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8770
mov eax, dword fs:[0]
push eax
mov eax, 0x1714
call fcn.004a53d0
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x16b4], esi
push 0x20a
lea eax, [ebp - 0x258]
mov byte [ebp - 0x16a1], 0
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea eax, [ebp - 0x258]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x404419
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_failed___d__n
call fcn.00406950
add esp, 8
xor al, al
jmp 0x404841
lea eax, [ebp - 0x464]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x258]
call fcn.00402f30
mov edi, eax
lea eax, [ebp - 0x670]
push eax
push 0x105
mov dword [ebp - 0x16a8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
mov word [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
xor ecx, ecx
nop
movzx eax, word [ecx + str.VVXXXXXX]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x26], ax
test ax, ax
jne 0x404460
lea eax, [ebp - 0x24]
push eax
call fcn.004ae82b
add esp, 4
lea eax, [ebp - 0x464]
mov ecx, esi
push eax
call fcn.00406b90
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00406b20
push str.Preparing_video_viewer_application..._n
call fcn.00406980
add esp, 4
lea eax, [ebp - 0x258]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404412
xorps xmm0, xmm0
lea eax, [ebp - 0x4c]
movlpd qword [ebp - 0x2c], xmm0
movups xmm0, xmmword [str.vrntwrap_XXXXXX]
push eax
movups xmmword [ebp - 0x4c], xmm0
movups xmm0, xmmword [0x544eb8]
movups xmmword [ebp - 0x3c], xmm0
call fcn.004ae82b
add esp, 4
lea ecx, [ebp - 0x16cc]
call fcn.004069c0
lea eax, [ebp - 0x464]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x16cc]
call fcn.00406b90
push 0x543f1c
lea ecx, [ebp - 0x16cc]
call fcn.00406b20
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x16cc]
call fcn.00406b20
push str..exe
lea ecx, [ebp - 0x16cc]
call fcn.00406b20
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x16cc]
call fcn.00406ab0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x16ac], eax
cmp eax, 0xffffffff
jne 0x40458f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x16a1], 0
jmp 0x404830
test edi, edi
je 0x4045e7
lea eax, [edi - 0x4c]
push eax
call fcn.004a4e5e
add esp, 4
mov edi, eax
lea eax, [ebp - 0x16b0]
push 0
push eax
mov eax, dword [ebp - 0x16a8]
add eax, 0xffffffb4
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404664
mov eax, dword [ebp - 0x16a8]
mov ecx, dword [ebp - 0x16b0]
add eax, 0xffffffb4
cmp ecx, eax
jne 0x404664
push 0
lea eax, [ebp - 0x16b8]
push eax
push ecx
jmp 0x404657
lea eax, [ebp - 0x16a0]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004af127
add esp, 8
test eax, eax
je 0x40460d
mov byte [ebp - 0x16a1], 0
jmp 0x404830
mov eax, dword [ebp - 0x168c]
push eax
mov dword [ebp - 0x16a8], eax
call fcn.004a4e5e
add esp, 4
mov edi, eax
lea eax, [ebp - 0x16b0]
push 0
push eax
push dword [ebp - 0x16a8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404664
mov eax, dword [ebp - 0x16b0]
cmp eax, dword [ebp - 0x16a8]
jne 0x404664
push 0
lea ecx, [ebp - 0x16b8]
push ecx
push eax
push edi
push dword [ebp - 0x16ac]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.004a4e59
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x16ac]
call esi
xorps xmm0, xmm0
mov dword [ebp - 0x1720], 0x44
push 0x800
lea eax, [ebp - 0x1670]
movlpd qword [ebp - 0x171c], xmm0
push 0
push eax
movlpd qword [ebp - 0x1714], xmm0
movlpd qword [ebp - 0x170c], xmm0
movlpd qword [ebp - 0x1704], xmm0
movlpd qword [ebp - 0x16fc], xmm0
movlpd qword [ebp - 0x16f4], xmm0
movlpd qword [ebp - 0x16ec], xmm0
movlpd qword [ebp - 0x16e4], xmm0
movups xmmword [ebp - 0x16dc], xmm0
call fcn.004a8410
mov ecx, dword [ebp - 0x16b4]
add esp, 0xc
call fcn.00406ab0
push eax
lea ecx, [ebp - 0x16cc]
call fcn.00406ab0
push eax
push str.__s____s___e
lea eax, [ebp - 0x1670]
push 0x800
push eax
call fcn.00402150
lea eax, [ebp - 0x1670]
push eax
push str.Running_application:__s_n
call fcn.00406980
add esp, 0x1c
lea eax, [ebp - 0x16dc]
push eax
lea eax, [ebp - 0x1720]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1670]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x404785
push 0xffffffffffffffff
push dword [ebp - 0x16dc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x16a1], 1
jmp 0x4047c3
call esi
push 0
push 0
lea ecx, [ebp - 0x16a8]
mov dword [ebp - 0x16a8], 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call edi
push dword [ebp - 0x16a8]
call fcn.00406980
push 0x54420c
call fcn.00406980
add esp, 8
lea ecx, [ebp - 0x16cc]
call fcn.00406ab0
push eax
push str.Cleaning_up__s..._n
call fcn.00406980
add esp, 8
lea ecx, [ebp - 0x16cc]
call fcn.00406ab0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404830
call esi
push 0
push 0
lea ecx, [ebp - 0x16a8]
mov dword [ebp - 0x16a8], 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call edi
push dword [ebp - 0x16a8]
call fcn.00406980
push 0x54420c
call fcn.00406980
add esp, 8
lea ecx, [ebp - 0x16cc]
call fcn.00406a50
mov al, byte [ebp - 0x16a1]
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.004a4dea
mov esp, ebp
pop ebp
ret