Function at 0x4098b0
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 0x4098f8
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x4098f8
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4098d8
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x21
jne 0x409908
jmp 0x409c73
mov dword [ebp - 0x10], 0
jmp 0x40991a
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x20
jge 0x409950
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x40992d
jmp 0x409950
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x409939
jmp 0x409950
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 0x409911
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 0x409999
push str.type
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x409999
push str.echo
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x4099bd
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 0x409d37
push 0x42c6e4
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x4099e9
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417317
add esp, 4
mov eax, 1
jmp 0x409d37
push str.types
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409a5c
cmp dword [ebp - 0xc], 0
je 0x409a1b
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x409a1b
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4099ff
push str.inline
mov eax, dword [ebp - 0xc]
push eax
call fcn.00427020
add esp, 8
test eax, eax
je 0x409a37
xor eax, eax
jmp 0x409d37
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 0x409d37
push str.where
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409abb
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 0x409ab1
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 0x409d37
push str.drop
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x409ae7
push str.keep
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409b42
cmp dword [0x4322a8], 0
je 0x409aff
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 0x409b38
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 0x409d37
push 0x42c710
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x409b6e
push 0x42c714
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409bb7
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x409b84
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x409b6e
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 0x409bad
push 0x11
mov ecx, dword [ebp - 0xc]
push ecx
push str.Error_deleting__s
call fcn.00401160
add esp, 0xc
mov eax, 1
jmp 0x409d37
push 0x42c72c
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409be7
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00409d3b
add esp, 0xc
mov eax, 1
jmp 0x409d37
push 0x42c730
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409c17
push 1
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.00409d3b
add esp, 0xc
mov eax, 1
jmp 0x409d37
push 0x42c734
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409c47
push 0
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00409d3b
add esp, 0xc
mov eax, 1
jmp 0x409d37
push 0x42c738
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x409c73
push str.shell
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x409cb6
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x409cac
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 0x409cac
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 0x409d37
movsx edx, byte [ebp - 0x73]
cmp edx, 0x3a
jne 0x409d35
movsx eax, byte [ebp - 0x72]
test eax, eax
jne 0x409d35
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 0x409d31
cmp dword [ebp - 4], 0x1a
jge 0x409d31
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 0x409d17
push 0x11
lea ecx, [ebp - 0x74]
push ecx
push str.Cannot_change_drive_to__s
call fcn.00401160
add esp, 0xc
jmp 0x409d2a
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 0x409d37
xor eax, eax
jmp 0x409d37
xor eax, eax
mov esp, ebp
pop ebp
ret