Function at 0x401e30
Capabilities:
Get disk information
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], eax
call fcn.00401d80
cmp edi, 1
jle 0x401f8f
mov esi, 1
jmp 0x401e90
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
cmp eax, 2
jne 0x402029
cmp byte [ebx + 1], 0x3a
jne 0x402029
add esi, 1
cmp dword [ebp - 0x3c], esi
jle 0x401f44
mov eax, dword [ebp - 0x40]
lea edi, [esi*4]
add eax, edi
mov ebx, dword [eax]
mov dword [ebp - 0x44], eax
cmp byte [ebx], 0x2d
jne 0x401e68
movsx eax, byte [ebx + 1]
lea edx, [ebx + 1]
xor ecx, ecx
xor ebx, ebx
test al, al
jne 0x401ed8
jmp 0x401f10
cmp al, 0x61
jne 0x401ffd
movsx eax, byte [edx + 1]
add edx, 1
mov ebx, 1
test al, al
je 0x401ef4
cmp al, 0x68
je 0x4020ad
cmp al, 0x75
jne 0x401ec0
movsx eax, byte [edx + 1]
add edx, 1
mov ecx, 1
test al, al
jne 0x401ed8
test cl, cl
je 0x401f02
mov dword [0x405004], 1
test bl, bl
je 0x401f10
mov dword [section..bss], 1
mov ebx, dword [ebp - 0x3c]
mov eax, ebx
sub ebx, 1
sub eax, esi
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
lea eax, [eax + edi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x3c], esi
jg 0x401e90
mov edx, dword [section..bss]
test edx, edx
jne 0x401f9c
mov edi, dword [ebp - 0x3c]
cmp edi, 1
jle 0x40202e
mov esi, dword [ebp - 0x40]
mov ebx, 1
jmp 0x401f6f
add ebx, 1
cmp ebx, edi
je 0x401fe4
mov eax, dword [esi + ebx*4]
movsx ax, byte [eax]
movzx eax, ax
call fcn.00401130
test eax, eax
jne 0x401f68
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
cmp dword [section..bss], 0
je 0x40202e
mov ebx, dword [sym.imp.kernel32.dll_GetDriveTypeW]
lea esi, [ebp - 0x38]
mov edi, 0x63
lea esi, [esi]
mov ecx, edi
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + 0x4040ba]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401fb8
mov word [ebp - 0x38], cx
mov dword [esp], esi
call ebx
sub esp, 4
cmp eax, 5
je 0x401ff0
add edi, 1
cmp edi, 0x7b
jne 0x401fb0
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_exit]
nop
mov eax, edi
call fcn.00401130
test eax, eax
jne 0x401fdc
jmp 0x401f82
test cl, cl
je 0x40200b
mov dword [0x405004], 1
test bl, bl
je 0x402019
mov dword [section..bss], 1
mov dword [esp + 4], eax
mov dword [esp], str.Unknown_option___c_n
call fcn.00401060
call fcn.00401080
mov ebx, dword [sym.imp.kernel32.dll_GetDriveTypeW]
lea esi, [ebp - 0x38]
mov edi, 0x63
xor ecx, ecx
mov eax, esi
mov esi, edi
mov edi, eax
mov dword [ebp - 0x3c], ebx
mov ebx, ecx
lea esi, [esi]
xor eax, eax
lea esi, [esi]
movzx ecx, word [eax + 0x4040ba]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x402058
mov eax, dword [ebp - 0x3c]
mov word [ebp - 0x38], si
mov dword [esp], edi
call eax
sub esp, 4
cmp eax, 5
jne 0x402086
test bx, bx
jne 0x4020e7
mov ebx, esi
add esi, 1
cmp si, 0x7b
jne 0x402050
test bx, bx
jne 0x4020d2
mov dword [esp], str.No_CD_drive_found_n
call fcn.00401060
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
test cl, cl
je 0x4020bb
mov dword [0x405004], 1
test bl, bl
je 0x402029
mov dword [section..bss], 1
jmp 0x402029
movzx eax, bx
call fcn.00401130
test eax, eax
jne 0x401fe4
jmp 0x401f82
movzx edi, si
movsx ecx, bl
mov dword [esp], str.Multiple_CD_drives_found___c:_and__c:___you_need_to_specify_the_one_you_want._n
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
call fcn.00401060
jmp 0x401f82