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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov byte [ebp - 0xb], al
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x108], 0
je 0x401301
movsx edx, byte [0x46a01b]
movsx eax, byte [ebp + 8]
cmp edx, eax
je 0x401414
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x108], 0
je 0x40131d
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx ecx, byte [ebp + 8]
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx + ecx + 0x10c]
push eax
push str._c:_
lea ecx, [ebp - 0x14]
push ecx
call fcn.0043d40b
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x401381
push 0xa4
push str.This_Drive_is_not_Optical_Device_Drive__u__n
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
call fcn.0043d40b
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [0x46a01b], 0xff
xor eax, eax
jmp 0x4014bd
movsx edx, byte [ebp + 8]
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax + edx + 0x10c]
push ecx
push 0x45774c
lea edx, [ebp - 0x14]
push edx
call fcn.0043d40b
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x108], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x108], 0xffffffff
jne 0x401414
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0xb3
mov eax, dword [ebp - 0x1c]
push eax
push str.Error_occur_during_getting_the_handle_of_Device__u__nError_Code__d_n
mov ecx, dword [ebp - 0x24]
add ecx, 4
push ecx
call fcn.0043d40b
add esp, 0x10
mov edx, dword [ebp - 0x24]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [0x46a01b], 0xff
xor eax, eax
jmp 0x4014bd
mov al, byte [ebp + 8]
mov byte [0x46a01b], al
movzx ecx, byte [ebp + 0x10]
cmp ecx, 1
jne 0x401451
push 0
lea edx, [ebp - 4]
push edx
push 0x50
mov eax, dword [ebp + 0xc]
push eax
push 0x50
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4d014
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x18], eax
jmp 0x40147b
push 0
lea ecx, [ebp - 4]
push ecx
push 0x28
mov edx, dword [ebp + 0xc]
push edx
push 0x28
mov eax, dword [ebp + 0xc]
push eax
push 0x4d030
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4014b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0xd0
mov eax, dword [ebp - 0x20]
push eax
push str.DeviceIoControl_Error:_Error_Code__d_nI_cant_issue_Command_through_SPTI__u_
mov ecx, dword [ebp - 0x24]
add ecx, 4
push ecx
call fcn.0043d40b
add esp, 0x10
mov edx, dword [ebp - 0x24]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4014bd
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret 0xc