Function at 0x401e60
Capabilities:
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
call fcn.00401db0
cmp dword [ebp + 8], 1
jle 0x401fd7
mov ebx, 1
jmp 0x401ea8
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
cmp eax, 2
jne 0x401f26
cmp byte [esi + 1], 0x3a
jne 0x401f26
add ebx, 1
cmp dword [ebp + 8], ebx
jle 0x401f8e
mov eax, dword [ebp + 0xc]
lea edi, [ebx*4]
add eax, edi
mov esi, dword [eax]
mov dword [ebp - 0x30], eax
cmp byte [esi], 0x2d
jne 0x401e80
movsx eax, byte [esi + 1]
lea edx, [esi + 1]
xor ecx, ecx
xor esi, esi
test al, al
jne 0x401ee8
jmp 0x401f5e
movsx eax, byte [edx + 1]
add edx, 1
mov esi, 1
test al, al
je 0x401f40
cmp al, 0x68
je 0x4020d0
cmp al, 0x75
je 0x401ed8
cmp al, 0x61
je 0x401f30
mov ebx, esi
test bl, bl
je 0x401f08
mov dword [0x407004], 1
test cl, cl
je 0x401f16
mov dword [section..bss], 1
mov dword [esp + 4], eax
mov dword [esp], str.Unknown_option___c_n
call fcn.00401060
call fcn.00401080
lea esi, [esi]
nop
movsx eax, byte [edx + 1]
add edx, 1
mov ecx, 1
test al, al
jne 0x401ee8
mov eax, esi
test al, al
je 0x401f50
mov dword [0x407004], 1
test cl, cl
je 0x401f5e
mov dword [section..bss], 1
mov eax, dword [ebp + 8]
sub eax, ebx
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
sub dword [ebp + 8], 1
cmp dword [ebp + 8], ebx
jg 0x401ea8
mov eax, dword [section..bss]
test eax, eax
jne 0x401fe0
cmp dword [ebp + 8], 1
je 0x402048
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, 1
lea esi, [esi]
mov eax, dword [esi + ebx*4]
movsx ax, byte [eax]
movzx eax, ax
call fcn.00401130
test eax, eax
je 0x40203b
add ebx, 1
cmp ebx, edi
jne 0x401fb0
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
cmp dword [section..bss], 0
je 0x402048
mov ebx, dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov edi, 0x63
lea esi, [ebp - 0x2c]
nop
mov ecx, edi
xor eax, eax
mov edx, 0x61
jmp 0x402007
movzx edx, word [eax + 0x4050ba]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x402000
mov word [ebp - 0x2c], cx
mov dword [esp], esi
call ebx
sub esp, 4
cmp eax, 5
je 0x402030
add edi, 1
cmp edi, 0x7b
jne 0x401ff0
jmp 0x401fca
mov eax, edi
call fcn.00401130
test eax, eax
jne 0x402024
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
mov eax, dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov word [ebp - 0x30], 0
mov edi, 0x63
lea esi, [ebp - 0x2c]
mov ebx, edi
mov edi, esi
mov esi, eax
lea esi, [esi]
xor eax, eax
mov ecx, 0x61
jmp 0x40207f
movzx ecx, word [eax + 0x4050ba]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x402078
mov word [ebp - 0x2c], bx
mov dword [esp], edi
call esi
sub esp, 4
cmp eax, 5
jne 0x4020a7
cmp word [ebp - 0x30], 0
jne 0x40210d
mov word [ebp - 0x30], bx
add ebx, 1
cmp bx, 0x7b
jne 0x402068
cmp word [ebp - 0x30], 0
jne 0x4020f7
mov dword [esp], str.No_CD_drive_found_n
call fcn.00401060
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
mov eax, esi
test al, al
je 0x4020e0
mov dword [0x407004], 1
test cl, cl
je 0x401f26
mov dword [section..bss], 1
jmp 0x401f26
movzx eax, word [ebp - 0x30]
call fcn.00401130
test eax, eax
jne 0x401fca
jmp 0x40203b
movsx edi, byte [ebp - 0x30]
movzx edx, bx
mov dword [esp], str.Multiple_CD_drives_found___c:_and__c:___you_need_to_specify_the_one_you_want._n
mov dword [esp + 8], edx
mov dword [esp + 4], edi
call fcn.00401060
jmp 0x40203b