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 dbg.__main
cmp edi, 1
jle 0x401fa7
mov ebx, 1
jmp 0x401ea0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
cmp eax, 2
jne 0x402050
cmp byte [esi + 1], 0x3a
jne 0x402050
add ebx, 1
cmp dword [ebp - 0x3c], ebx
jle 0x401f56
mov eax, dword [ebp - 0x40]
lea edi, [ebx*4]
add eax, edi
mov esi, dword [eax]
mov dword [ebp - 0x44], eax
cmp byte [esi], 0x2d
jne 0x401e78
movsx eax, byte [esi + 1]
lea edx, [esi + 1]
xor ecx, ecx
xor esi, esi
test al, al
jne 0x401ee8
jmp 0x401f22
cmp al, 0x61
jne 0x402020
movsx eax, byte [edx + 1]
add edx, 1
mov esi, 1
test al, al
je 0x401f04
cmp al, 0x68
je 0x4020da
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
mov eax, esi
test al, al
je 0x401f22
mov dword [section..bss], 1
mov esi, dword [ebp - 0x3c]
mov eax, esi
sub esi, 1
sub eax, ebx
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], esi
cmp dword [ebp - 0x3c], ebx
jg 0x401ea0
mov edx, dword [section..bss]
test edx, edx
jne 0x401fb4
mov edi, dword [ebp - 0x3c]
cmp edi, 1
jle 0x402055
mov esi, dword [ebp - 0x40]
mov ebx, 1
jmp 0x401f87
add ebx, 1
cmp ebx, edi
je 0x401ffc
mov eax, dword [esi + ebx*4]
movsx ax, byte [eax]
movzx eax, ax
call dbg.eject_cd
test eax, eax
jne 0x401f80
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
cmp dword [section..bss], 0
je 0x402055
mov ebx, dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov edi, 0x63
lea esi, [ebp - 0x38]
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 0x401fd0
mov word [ebp - 0x38], cx
mov dword [esp], esi
call ebx
sub esp, 4
cmp eax, 5
je 0x402010
add edi, 1
cmp edi, 0x7b
jne 0x401fc8
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
nop
mov eax, edi
call dbg.eject_cd
test eax, eax
jne 0x401ff4
jmp 0x401f9a
mov ebx, ecx
mov ecx, esi
test bl, bl
je 0x402032
mov dword [0x405004], 1
test cl, cl
je 0x402040
mov dword [section..bss], 1
mov dword [esp + 4], eax
mov dword [esp], str.Unknown_option___c_n
call dbg.wine_dbg_printf
call dbg.usage
mov ebx, dword [sym.imp.kernel32.dll_GetDriveTypeW]
xor ecx, ecx
mov edi, 0x63
lea esi, [ebp - 0x38]
mov word [ebp - 0x3c], cx
mov eax, ebx
mov ebx, edi
mov edi, esi
mov esi, eax
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 0x402080
mov word [ebp - 0x38], bx
mov dword [esp], edi
call esi
sub esp, 4
cmp eax, 5
jne 0x4020af
cmp word [ebp - 0x3c], 0
jne 0x402118
mov word [ebp - 0x3c], bx
add ebx, 1
cmp bx, 0x7b
jne 0x402078
movzx ecx, word [ebp - 0x3c]
test cx, cx
jne 0x402103
mov dword [esp], str.No_CD_drive_found_n
call dbg.wine_dbg_printf
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
mov eax, ecx
mov ecx, esi
test al, al
je 0x4020ec
mov dword [0x405004], 1
test cl, cl
je 0x402050
mov dword [section..bss], 1
jmp 0x402050
movzx eax, cx
call dbg.eject_cd
test eax, eax
jne 0x401ffc
jmp 0x401f9a
movzx ecx, word [ebp - 0x3c]
movzx edi, 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], edi
movsx ecx, cl
mov dword [esp + 4], ecx
call dbg.wine_dbg_printf
jmp 0x401f9a