Function at 0x4022d0
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, 0x58
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], eax
call dbg.__main
cmp ebx, 1
jle 0x402467
mov ebx, 1
jmp 0x402330
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
cmp eax, 2
jne 0x4023ba
cmp byte [esi + 1], 0x3a
jne 0x4023ba
add ebx, 1
cmp dword [ebp - 0x40], ebx
jle 0x402422
lea eax, [ebx*4]
mov edi, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
add eax, edi
mov esi, dword [eax]
mov dword [ebp - 0x4c], eax
cmp byte [esi], 0x2d
jne 0x402308
movsx eax, byte [esi + 1]
lea edx, [esi + 1]
test al, al
je 0x4023eb
mov byte [ebp - 0x3a], 0
mov esi, dword [0x406004]
xor ecx, ecx
mov edi, dword [section..bss]
jmp 0x402384
movsx eax, byte [edx + 1]
add edx, 1
mov byte [ebp - 0x3a], 1
mov esi, 1
test al, al
je 0x4023d5
cmp al, 0x68
je 0x402560
cmp al, 0x75
je 0x402370
cmp al, 0x61
je 0x4023c0
test cl, cl
je 0x40239e
mov dword [section..bss], edi
cmp byte [ebp - 0x3a], 0
je 0x4023aa
mov dword [0x406004], esi
mov dword [esp + 4], eax
mov dword [esp], str.Unknown_option___c_n
call dbg.wine_dbg_printf
call dbg.usage
nop
movsx eax, byte [edx + 1]
add edx, 1
mov ecx, 1
mov edi, 1
test al, al
jne 0x402384
test cl, cl
je 0x4023df
mov dword [section..bss], edi
cmp byte [ebp - 0x3a], 0
je 0x4023eb
mov dword [0x406004], esi
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov eax, edi
sub edi, 1
sub eax, ebx
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
lea eax, [eax + ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov dword [ebp - 0x40], edi
cmp dword [ebp - 0x40], ebx
jg 0x402330
mov eax, dword [section..bss]
test eax, eax
jne 0x402470
mov edi, dword [ebp - 0x40]
cmp edi, 1
je 0x4024d8
mov esi, dword [ebp - 0x44]
mov ebx, 1
nop
mov eax, dword [esi + ebx*4]
movsx ax, byte [eax]
movzx eax, ax
call sym._eject_cd
test eax, eax
je 0x4024cb
add ebx, 1
cmp ebx, edi
jne 0x402440
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
cmp dword [section..bss], 0
je 0x4024d8
mov ebx, dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov edi, 0x63
lea esi, [ebp - 0x38]
nop
mov ecx, edi
xor eax, eax
mov edx, 0x61
jmp 0x402497
movzx edx, word [eax + 0x4040ba]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x402490
mov word [ebp - 0x38], cx
mov dword [esp], esi
call ebx
sub esp, 4
cmp eax, 5
je 0x4024c0
add edi, 1
cmp edi, 0x7b
jne 0x402480
jmp 0x40245a
mov eax, edi
call sym._eject_cd
test eax, eax
jne 0x4024b4
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
mov ebx, dword [sym.imp.kernel32.dll_GetDriveTypeW]
lea esi, [ebp - 0x38]
mov word [ebp - 0x3a], 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 0x40250f
movzx ecx, word [eax + 0x4040ba]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x402508
mov word [ebp - 0x38], bx
mov dword [esp], edi
call esi
sub esp, 4
cmp eax, 5
jne 0x402537
cmp word [ebp - 0x3a], 0
jne 0x402595
mov word [ebp - 0x3a], bx
add ebx, 1
cmp bx, 0x7b
jne 0x4024f8
cmp word [ebp - 0x3a], 0
jne 0x40257f
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]
test cl, cl
je 0x40256a
mov dword [section..bss], edi
cmp byte [ebp - 0x3a], 0
je 0x4023ba
mov dword [0x406004], esi
jmp 0x4023ba
movzx eax, word [ebp - 0x3a]
call sym._eject_cd
test eax, eax
jne 0x40245a
jmp 0x4024cb
movsx edi, byte [ebp - 0x3a]
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 dbg.wine_dbg_printf
jmp 0x4024cb