Function at 0x401e40
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.00401d90
cmp edi, 1
jle 0x401f9f
mov esi, 1
jmp 0x401ea0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
cmp eax, 2
jne 0x402039
cmp byte [ebx + 1], 0x3a
jne 0x402039
add esi, 1
cmp dword [ebp - 0x3c], esi
jle 0x401f54
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 0x401e78
movsx eax, byte [ebx + 1]
lea edx, [ebx + 1]
xor ecx, ecx
xor ebx, ebx
test al, al
jne 0x401ee8
jmp 0x401f20
cmp al, 0x61
jne 0x40200d
movsx eax, byte [edx + 1]
add edx, 1
mov ebx, 1
test al, al
je 0x401f04
cmp al, 0x68
je 0x4020bd
cmp al, 0x75
jne 0x401ed0
movsx eax, byte [edx + 1]
add edx, 1
mov ecx, 1
test al, al
jne 0x401ee8
test cl, cl
je 0x401f12
mov dword [0x405004], 1
test bl, bl
je 0x401f20
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 0x401ea0
mov edx, dword [section..bss]
test edx, edx
jne 0x401fac
mov edi, dword [ebp - 0x3c]
cmp edi, 1
jle 0x40203e
mov esi, dword [ebp - 0x40]
mov ebx, 1
jmp 0x401f7f
add ebx, 1
cmp ebx, edi
je 0x401ff4
mov eax, dword [esi + ebx*4]
movsx ax, byte [eax]
movzx eax, ax
call fcn.00401140
test eax, eax
jne 0x401f78
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
cmp dword [section..bss], 0
je 0x40203e
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 0x401fc8
mov word [ebp - 0x38], cx
mov dword [esp], esi
call ebx
sub esp, 4
cmp eax, 5
je 0x402000
add edi, 1
cmp edi, 0x7b
jne 0x401fc0
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_exit]
nop
mov eax, edi
call fcn.00401140
test eax, eax
jne 0x401fec
jmp 0x401f92
test cl, cl
je 0x40201b
mov dword [0x405004], 1
test bl, bl
je 0x402029
mov dword [section..bss], 1
mov dword [esp + 4], eax
mov dword [esp], str.Unknown_option___c_n
call fcn.00401090
call fcn.004010f0
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 0x402068
mov eax, dword [ebp - 0x3c]
mov word [ebp - 0x38], si
mov dword [esp], edi
call eax
sub esp, 4
cmp eax, 5
jne 0x402096
test bx, bx
jne 0x4020f7
mov ebx, esi
add esi, 1
cmp si, 0x7b
jne 0x402060
test bx, bx
jne 0x4020e2
mov dword [esp], str.No_CD_drive_found_n
call fcn.00401090
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
test cl, cl
je 0x4020cb
mov dword [0x405004], 1
test bl, bl
je 0x402039
mov dword [section..bss], 1
jmp 0x402039
movzx eax, bx
call fcn.00401140
test eax, eax
jne 0x401ff4
jmp 0x401f92
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.00401090
jmp 0x401f92