Function at 0x407d70
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Get common file path
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f527b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x517748]
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
push 1
call fcn.00407c60
push dword [esi + 0x28]
push 0x4fea5c
call fcn.004c21a5
add esp, 8
cmp byte [esi + 0x2c], 0
je 0x408007
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
jge 0x407fe7
push 0
call fcn.004c33b5
add esp, 4
push eax
call fcn.004c25f1
lea eax, [ebp - 0x450]
push eax
call fcn.00407bd0
push 4
push 0x4fe9f0
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0
call fcn.0040c860
cmp dword [ebp - 0x43c], 0x10
lea ecx, [ebp - 0x450]
mov eax, dword [ebp - 0x440]
cmovae ecx, dword [ebp - 0x450]
push dword [ebp - 0x4b4]
add eax, ecx
mov dword [ebp - 0x41c], 7
cmp dword [ebp - 0x43c], 0x10
lea ecx, [ebp - 0x450]
push eax
cmovae ecx, dword [ebp - 0x450]
xor edx, edx
push ecx
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x420], 0
mov word [ebp - 0x430], dx
call fcn.00411ff0
cmp dword [ebp - 0x41c], 8
lea eax, [ebp - 0x418]
push 0x104
push eax
lea edi, [ebp - 0x430]
cmovae edi, dword [ebp - 0x430]
push 0
push 0xffffffffffffffff
mov dword [ebp - 0x4b4], edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x407f9c
push 0
push edi
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
lea eax, [ebp - 0x454]
push eax
push 0
push 1
push 0
mov dword [ebp - 0x454], 0
call edi
push dword [ebp - 0x454]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x4b8], eax
push ecx
push 0
push 1
push eax
call edi
mov edi, dword [ebp - 0x4b8]
lea eax, [ebp - 0x438]
push 0
push 0
push 8
push eax
push 0x20007
push 0
push edi
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 1
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
push 0x44
lea eax, [ebp - 0x4ac]
push 0
push eax
call fcn.004c6800
add esp, 0xc
mov dword [ebp - 0x4b0], 0x48
lea eax, [ebp - 0x218]
mov dword [ebp - 0x46c], edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x80004
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push dword [ebp - 0x4b4]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp - 0x41c], 8
jb 0x407fb3
push dword [ebp - 0x430]
call fcn.00440f10
add esp, 4
xor eax, eax
mov dword [ebp - 0x41c], 7
cmp dword [ebp - 0x43c], 0x10
mov dword [ebp - 0x420], 0
mov word [ebp - 0x430], ax
jb 0x407fe7
push dword [ebp - 0x450]
call fcn.00440f10
add esp, 4
cmp byte [esi + 0x2c], 0
je 0x408007
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x20]
je 0x408007
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.004c37a5
push dword [esi + 0x28]
push 0x4fea60
call fcn.004c21a5
mov eax, dword [esi + 0x28]
add esp, 8
cmp eax, dword [esi + 0x24]
je 0x40803a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov ecx, esi
call fcn.00407c60
push 0x64
call edi
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
jne 0x408025
push dword [0x66bd10]
mov edx, 0x66bd15
mov byte [0x66bd14], 1
push 0x66bd17
push 0x66bd16
mov ecx, 0x66bd14
call fcn.00402b90
mov eax, dword [esi + 0x1c]
add esp, 0xc
test eax, eax
je 0x408071
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40807f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movdqu xmmword [esi + 0x20], xmm0
call fcn.00407ad0
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.004c0564
mov esp, ebp
pop ebp
ret