Function at 0x401e20
Capabilities:
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
call sym.___main
cmp dword [ebp + 8], 1
jle 0x402018
mov ebx, 1
jmp 0x401e68
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
cmp eax, 2
jne 0x401ef2
cmp byte [esi + 1], 0x3a
jne 0x401ef2
add ebx, 1
cmp dword [ebp + 8], ebx
jle 0x401f60
lea eax, [ebx*4]
mov dword [ebp - 0x34], eax
add eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov dword [ebp - 0x38], eax
cmp byte [esi], 0x2d
jne 0x401e40
movsx eax, byte [esi + 1]
lea edx, [esi + 1]
test al, al
je 0x401f2b
mov byte [ebp - 0x2e], 0
mov esi, dword [0x406004]
xor ecx, ecx
mov edi, dword [section..bss]
jmp 0x401ebc
movsx eax, byte [edx + 1]
add edx, 1
mov byte [ebp - 0x2e], 1
mov esi, 1
test al, al
je 0x401f15
cmp al, 0x68
je 0x4020b0
cmp al, 0x75
je 0x401ea8
cmp al, 0x61
je 0x401f00
test cl, cl
je 0x401ed6
mov dword [section..bss], edi
cmp byte [ebp - 0x2e], 0
je 0x401ee2
mov dword [0x406004], esi
mov dword [esp + 4], eax
mov dword [esp], str.Unknown_option___c_n
call sym._wine_dbg_printf
call sym._usage
lea esi, [esi]
nop
movsx eax, byte [edx + 1]
add edx, 1
mov ecx, 1
mov edi, 1
test al, al
jne 0x401ebc
test cl, cl
je 0x401f1f
mov dword [section..bss], edi
cmp byte [ebp - 0x2e], 0
je 0x401f2b
mov dword [0x406004], esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x34]
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 - 0x38]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
sub dword [ebp + 8], 1
cmp dword [ebp + 8], ebx
jg 0x401e68
nop
mov eax, dword [section..bss]
test eax, eax
je 0x401fc9
mov ebx, dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov edi, 0x63
lea esi, [ebp - 0x2c]
lea esi, [esi]
nop
mov ecx, edi
xor eax, eax
mov edx, 0x61
jmp 0x401f97
movzx edx, word [eax + 0x4050ba]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401f90
mov word [ebp - 0x2c], cx
mov dword [esp], esi
call ebx
sub esp, 4
cmp eax, 5
je 0x402000
add edi, 1
cmp edi, 0x7b
jne 0x401f80
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
cmp dword [ebp + 8], 1
je 0x402025
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 sym._eject_cd
test eax, eax
je 0x40200b
add ebx, 1
cmp ebx, edi
jne 0x401fe0
jmp 0x401fbc
mov eax, edi
call sym._eject_cd
test eax, eax
jne 0x401fb4
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
cmp dword [section..bss], 0
jne 0x401f69
mov ebx, dword [sym.imp.kernel32.dll_GetDriveTypeW]
lea esi, [ebp - 0x2c]
mov word [ebp - 0x2e], 0
mov edi, 0x63
mov eax, esi
mov esi, ebx
mov ebx, edi
mov edi, eax
lea esi, [esi]
xor eax, eax
mov ecx, 0x61
jmp 0x40205f
movzx ecx, word [eax + 0x4050ba]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x402058
mov word [ebp - 0x2c], bx
mov dword [esp], edi
call esi
sub esp, 4
cmp eax, 5
jne 0x402087
cmp word [ebp - 0x2e], 0
jne 0x4020e5
mov word [ebp - 0x2e], bx
add ebx, 1
cmp bx, 0x7b
jne 0x402048
cmp word [ebp - 0x2e], 0
jne 0x4020cf
mov dword [esp], str.No_CD_drive_found_n
call sym._wine_dbg_printf
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
test cl, cl
je 0x4020ba
mov dword [section..bss], edi
cmp byte [ebp - 0x2e], 0
je 0x401ef2
mov dword [0x406004], esi
jmp 0x401ef2
movzx eax, word [ebp - 0x2e]
call sym._eject_cd
test eax, eax
jne 0x401fbc
jmp 0x40200b
movsx edi, byte [ebp - 0x2e]
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 sym._wine_dbg_printf
jmp 0x40200b