Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
test ecx, ecx
je 0x401077
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x22
jne 0x401050
cmp dword [ebp - 0x14], 0
jne 0x401041
mov dword [ebp - 0x18], 1
jmp 0x401048
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jmp 0x40106c
cmp dword [ebp - 0x14], 0
jne 0x40106c
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x20
jne 0x40106c
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
jmp 0x401077
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
jmp 0x40101d
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x20
jne 0x40108d
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
jmp 0x401077
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, word [edx + ecx]
cmp eax, 0x2d
jne 0x4010ee
mov ecx, 2
shl ecx, 0
mov edx, dword [ebp - 4]
movzx eax, word [edx + ecx]
cmp eax, 0x73
jne 0x4010ee
mov ecx, 2
shl ecx, 1
mov edx, dword [ebp - 4]
movzx eax, word [edx + ecx]
cmp eax, 0x20
jne 0x4010ee
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x20
jne 0x4010ee
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
jmp 0x4010d8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x1c], eax
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00408dce
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
lea eax, [ebp - 0x24]
push eax
push 2
push section..data
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 4]
push edx
call fcn.00408dce
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jb 0x4011c5
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, word [edx + ecx]
cmp eax, 0x22
jne 0x4011c5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
movzx eax, word [edx + ecx*2 - 2]
cmp eax, 0x22
jne 0x4011c5
mov ecx, dword [ebp - 8]
add ecx, 3
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
shl edx, 1
push edx
call fcn.004085e0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4011a6
push str.vimrun_malloc__:
call fcn.00408399
add esp, 4
or eax, 0xffffffff
jmp 0x40123f
mov eax, dword [ebp - 4]
push eax
push str.__s_
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401260
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00408706
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x4011e6
mov edx, dword [ebp - 0xc]
push edx
call fcn.004085d0
add esp, 4
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4011fb
push str.vimrun_system__:
call fcn.00408399
add esp, 4
jmp 0x401212
cmp dword [ebp - 0x10], 0
je 0x401212
mov eax, dword [ebp - 0x10]
push eax
push str.shell_returned__d_n
call fcn.00401320
add esp, 8
cmp dword [ebp - 0x20], 0
jne 0x40123c
push str.Hit_any_key_to_close_this_window...
call fcn.0040859f
add esp, 4
call fcn.00408b1b
test eax, eax
je 0x401236
call fcn.004088e7
nop
jmp 0x401225
call fcn.004088e7
nop
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret