Function at 0x40989e
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x4098e6
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x4098e6
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4098c6
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x21
jne 0x4098f6
jmp 0x409c61
mov dword [ebp - 0x10], 0
jmp 0x409908
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x20
jge 0x40993e
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x40991b
jmp 0x40993e
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x409927
jmp 0x40993e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp + ecx - 0x74], al
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x4098ff
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x74], 0
push 0x42c6cc
lea eax, [ebp - 0x74]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x409987
push str.type
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x409987
push str.echo
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x4099ab
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 1]
push edx
push 0x42c6e0
call fcn.00401160
add esp, 0xc
mov eax, 1
jmp 0x409d25
push 0x42c6e4
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x4099d7
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417307
add esp, 4
mov eax, 1
jmp 0x409d25
push str.types
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409a4a
cmp dword [ebp - 0xc], 0
je 0x409a09
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x409a09
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4099ed
push str.inline
mov eax, dword [ebp - 0xc]
push eax
call fcn.00426f90
add esp, 8
test eax, eax
je 0x409a25
xor eax, eax
jmp 0x409d25
mov ecx, dword [ebp - 0xc]
add ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov dword [0x4322b0], eax
mov eax, 1
jmp 0x409d25
push str.where
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409aa9
mov ecx, dword [ebp + 8]
add ecx, 5
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [0x4322a4], eax
cmp dword [0x4322a4], 0
je 0x409a9f
mov edx, dword [ebp + 8]
add edx, 5
push edx
mov eax, dword [0x4322a4]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, 1
jmp 0x409d25
push str.drop
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x409ad5
push str.keep
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409b30
cmp dword [0x4322a8], 0
je 0x409aed
mov eax, dword [0x4322a8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [0x4322a8], eax
cmp dword [0x4322a8], 0
je 0x409b26
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x4322a8]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, 1
jmp 0x409d25
push 0x42c710
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x409b5c
push 0x42c714
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409ba5
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x409b72
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x409b5c
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409b9b
push 0x11
mov ecx, dword [ebp - 0xc]
push ecx
push str.Error_deleting__s
call fcn.00401160
add esp, 0xc
mov eax, 1
jmp 0x409d25
push 0x42c72c
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409bd5
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00409d29
add esp, 0xc
mov eax, 1
jmp 0x409d25
push 0x42c730
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409c05
push 1
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.00409d29
add esp, 0xc
mov eax, 1
jmp 0x409d25
push 0x42c734
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409c35
push 0
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00409d29
add esp, 0xc
mov eax, 1
jmp 0x409d25
push 0x42c738
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x409c61
push str.shell
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409ca4
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x409c9a
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_system]
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x409c9a
push 0x11
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
push str.Cannot_execute_command:__s
call fcn.00401160
add esp, 0xc
mov eax, 1
jmp 0x409d25
movsx edx, byte [ebp - 0x73]
cmp edx, 0x3a
jne 0x409d23
movsx eax, byte [ebp - 0x72]
test eax, eax
jne 0x409d23
movsx ecx, byte [ebp - 0x74]
push ecx
call dword [sym.imp.MSVCRT.dll_toupper]
add esp, 4
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
sub edx, 0x40
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jle 0x409d1f
cmp dword [ebp - 4], 0x1a
jge 0x409d1f
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll__chdrive
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409d05
push 0x11
lea ecx, [ebp - 0x74]
push ecx
push str.Cannot_change_drive_to__s
call fcn.00401160
add esp, 0xc
jmp 0x409d18
push 0
lea edx, [ebp - 0x74]
push edx
push str.Current_drive_changed_to__s
call fcn.00401160
add esp, 0xc
mov eax, 1
jmp 0x409d25
xor eax, eax
jmp 0x409d25
xor eax, eax
mov esp, ebp
pop ebp
ret