Function at 0x401000
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1045c
call fcn.00405670
mov eax, dword [0x409050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.00401448
lea ebx, [eax + 2]
mov ecx, ebx
add esp, 8
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401047
sub ecx, esi
sar ecx, 1
lea edi, [ebx + ecx*2 - 8]
mov edx, str..bin
mov esi, edi
sub esi, edx
movzx ecx, word [edx]
mov word [esi + edx], cx
add edx, 2
test cx, cx
jne 0x401063
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4010ba
push 0x10
push ebx
xor ecx, ecx
push str.File_not_found
push ecx
mov word [edi], cx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401439
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x10420]
push edx
call edi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call edi
mov edi, eax
mov eax, dword [esi]
push eax
push edi
mov dword [ebp - 0x10418], edi
call fcn.00401476
add esp, 8
cmp edi, eax
jne 0x40110a
mov eax, dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4010f1
sub eax, edx
sar eax, 1
lea eax, [edi + eax*2 + 2]
mov dword [ebp - 0x10418], eax
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x40786c]
mov word [ebp + eax - 0x10414], cx
add eax, 2
test cx, cx
jne 0x401110
mov eax, ebx
mov edx, ebx
jmp 0x401130
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401130
lea edi, [ebp - 0x10414]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401146
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x10414]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x401170
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401170
mov ecx, dword [0x407870]
mov dx, word [0x407874]
mov dword [eax], ecx
mov word [eax + 4], dx
mov eax, dword [ebp - 0x10418]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401197
lea edi, [ebp - 0x10414]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4011b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
xor eax, eax
movzx ecx, word [eax + str.svcr.exe]
mov word [ebp + eax - 0x414], cx
add eax, 2
cmp cx, si
jne 0x4011d0
push 0x38
lea eax, [ebp - 0x10458]
push esi
push eax
mov dword [ebp - 0x1041c], esi
call fcn.00404880
add esp, 0xc
lea eax, [ebp - 0x1045c]
lea ecx, [ebp - 0x414]
lea edx, [ebp - 0x10414]
push eax
mov dword [ebp - 0x1045c], 0x3c
mov dword [ebp - 0x10458], 0x40
mov dword [ebp - 0x10454], esi
mov dword [ebp - 0x10450], esi
mov dword [ebp - 0x1044c], ecx
mov dword [ebp - 0x10448], edx
mov dword [ebp - 0x10444], esi
mov dword [ebp - 0x10440], 5
mov dword [ebp - 0x1043c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40128e
mov ecx, dword [ebp - 0x10424]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x10424]
lea edx, [ebp - 0x1041c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x10424]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1041c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401439
mov esp, ebp
pop ebp
ret