Function at 0x4010f0
Capabilities:
Get disk information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x588e70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x50
lea eax, [ebp - 0x160]
push 0
push eax
mov esi, ecx
call fcn.005144f0
xor eax, eax
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], eax
mov dword [esi + 0x154], eax
mov word [esi + 0x158], ax
mov eax, dword [ebp + 0x14]
mov edx, eax
mov dword [ebp - 0x154], eax
movzx eax, byte [ebp + 0x1c]
add esp, 0xc
neg edx
sbb edx, edx
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0x18]
and edx, edi
mov ecx, 0x2c
mov word [ebp - 0x160], cx
mov dword [ebp - 0x15d], 0xc000000
mov byte [ebp - 0x159], 0x12
mov dword [ebp - 0x148], 0x30
mov dword [ebp - 0x14c], edx
cmp eax, 1
jne 0x40119a
mov byte [ebp - 0x158], al
jmp 0x4011a6
neg eax
sbb al, al
and al, 2
mov byte [ebp - 0x158], al
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x161], 0
lea ecx, [ecx]
mov edi, dword [esi + 0x108]
xor eax, eax
mov byte [ebp - 0x10], 0
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 7], al
test edi, edi
je 0x4011ff
mov cl, byte [0x58301b]
cmp cl, byte [ebp + 8]
je 0x4012cb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx edx, byte [ebp + 8]
movsx eax, byte [edx + esi + 0x10c]
lea edi, [edx + esi + 0x10c]
push eax
push str._c:_
lea ecx, [ebp - 0x10]
push 0xa
push ecx
call fcn.00514498
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x40125f
push 0xa4
push str.This_Drive_is_not_Optical_Device_Drive__u__n
lea edi, [esi + 4]
push 0x100
push edi
call fcn.00514498
add esp, 0x10
push edi
call ebx
mov byte [0x58301b], 0xff
jmp 0x401325
movsx eax, byte [edi]
push eax
push str.._c:
lea ecx, [ebp - 0x10]
push 0xa
push ecx
call fcn.00514498
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x108], eax
cmp eax, 0xffffffff
jne 0x4012cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb3
push eax
push str.Error_occur_during_getting_the_handle_of_Device__u__nError_Code__d_n
lea edi, [esi + 4]
push 0x100
push edi
call fcn.00514498
add esp, 0x14
push edi
call ebx
mov byte [0x58301b], 0xff
jmp 0x401325
mov al, byte [ebp + 8]
push 0
lea ecx, [ebp - 0x168]
push ecx
mov ecx, dword [esi + 0x108]
push 0x50
lea edx, [ebp - 0x160]
push edx
push 0x50
mov byte [0x58301b], al
mov eax, edx
push eax
push 0x4d014
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x401353
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd0
push eax
push str.DeviceIoControl_Error:_Error_Code__d_nI_cant_issue_Command_through_SPTI__u_
lea edi, [esi + 4]
push 0x100
push edi
call fcn.00514498
add esp, 0x14
push edi
call ebx
mov al, byte [ebp - 0x161]
mov dl, al
inc al
mov byte [ebp - 0x161], al
cmp dl, 5
jb 0x4011d0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005144d7
mov esp, ebp
pop ebp
ret 0x18
mov al, byte [ebp - 0x15e]
test al, al
je 0x4013d6
movzx eax, al
push eax
push str.ScsiStatus_is__02X_n
lea ecx, [ebp - 0x110]
push 0xff
push ecx
call fcn.00514498
add esp, 0x10
lea edx, [ebp - 0x110]
push edx
call ebx
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x128]
mov dword [esi + 0x148], eax
mov eax, dword [ebp - 0x124]
mov dword [esi + 0x14c], ecx
mov cx, word [ebp - 0x120]
mov dword [esi + 0x150], edx
mov dword [esi + 0x154], eax
pop edi
mov word [esi + 0x158], cx
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005144d7
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.005144d7
mov esp, ebp
pop ebp
ret 0x18