Function at 0x408800
Capabilities:
Accept command line arguments
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506bfd
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x320]
call fcn.00406bb0
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x234], cx
mov esi, 7
mov ecx, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x408863
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.004021e0
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 1
call fcn.00406ee0
mov edi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], edi
jb 0x4088b4
mov eax, dword [ebp - 0x234]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
push 1
mov word [ebp - 0x2a4], cx
push 0x511758
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], ebx
call fcn.004021e0
push 9
xor edx, edx
push 0x511744
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
call fcn.004021e0
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 3
call fcn.00406c90
cmp dword [ebp - 0x220], edi
jb 0x40893a
mov edx, dword [ebp - 0x234]
push edx
call fcn.004b9d66
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x290], edi
jb 0x408969
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.004b9d66
add esp, 4
lea edx, [ebp - 0x288]
push edx
lea ecx, [ebp - 0x320]
call fcn.00404ce0
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 4
call fcn.00407330
lea esi, [ebp - 0x250]
mov byte [ebp - 4], 5
call fcn.00408630
mov ecx, dword [ebp - 0x250]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x23c], edi
jae 0x4089b4
mov ecx, esi
mov eax, dword [ebp - 0x288]
cmp dword [ebp - 0x274], edi
jae 0x4089c8
lea eax, [ebp - 0x288]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x408a7b
cmp dword [ebp - 0x23c], edi
jb 0x4089f0
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004b9d66
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], dx
cmp dword [ebp - 0x258], edi
jb 0x408a21
mov eax, dword [ebp - 0x26c]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
mov word [ebp - 0x26c], cx
cmp dword [ebp - 0x274], edi
jb 0x408a4d
mov edx, dword [ebp - 0x288]
push edx
call fcn.004b9d66
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], ebx
mov word [ebp - 0x288], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00406530
xor eax, eax
jmp 0x408bb7
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.004bad00
call fcn.00415a20
push eax
lea eax, [ebp - 0x218]
push 0xffffffffffffffff
push eax
call fcn.004bafb0
add esp, 0x18
lea ecx, [ebp - 0x364]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x338], 1
movzx edx, word [ebp - 0x334]
jne 0x408acf
mov edx, 0xa
mov ecx, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x408ae3
lea ecx, [ebp - 0x26c]
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x408af7
lea eax, [ebp - 0x250]
push edx
lea edx, [ebp - 0x218]
push edx
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov esi, ecx
cmp dword [ebp - 0x23c], edi
jb 0x408b2a
mov edx, dword [ebp - 0x250]
push edx
call fcn.004b9d66
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
cmp dword [ebp - 0x258], edi
jb 0x408b5a
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.004b9d66
add esp, 4
xor edx, edx
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], ebx
mov word [ebp - 0x26c], dx
cmp dword [ebp - 0x274], edi
jb 0x408b8a
mov eax, dword [ebp - 0x288]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
mov word [ebp - 0x288], cx
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00406530
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba901
mov esp, ebp
pop ebp
ret