Function at 0x48030f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
cmp dword [ebp + 8], 0xffffffff
jne 0x480363
push 0x104
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.004e8440
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
push str._PATARead_:_Read_LBA__0x_04X__Disk_handle_invalid_n
lea eax, [ebp - 0x13c]
push eax
call fcn.004e894d
add esp, 0xc
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x48059f
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
cmp dword [ebp + 0x18], 0
je 0x4803d5
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 3
mov edx, dword [ebp + 0x18]
push edx
call fcn.004be210
add esp, 0x10
test eax, eax
jne 0x4803d5
push 0x104
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.004e8440
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x55fd04
lea eax, [ebp - 0x13c]
push eax
call fcn.004e894d
add esp, 0xc
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x48059f
push 0x28
push 0
lea edx, [ebp - 0x28]
push edx
call fcn.004e8440
add esp, 0xc
mov word [ebp - 0x28], 0x28
cmp dword [ebp + 0x1c], 0
jne 0x4803f9
mov word [ebp - 0x26], 2
jmp 0x48041b
cmp dword [ebp + 0x1c], 1
jne 0x480407
mov word [ebp - 0x26], 0xa
jmp 0x48041b
cmp dword [ebp + 0x1c], 2
jne 0x480415
mov word [ebp - 0x26], 0x12
jmp 0x48041b
mov word [ebp - 0x26], 0x1a
mov ax, word [ebp - 0x26]
or al, 1
mov word [ebp - 0x26], ax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [0x55fa20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], 1
je 0x480446
cmp dword [ebp + 0x1c], 3
jne 0x480488
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx]
mov byte [ebp - 0x10], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 4]
mov byte [ebp - 0xf], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 8]
mov byte [ebp - 0xe], al
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + 0xc]
mov byte [ebp - 0xd], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 0x10]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 0x14]
mov byte [ebp - 0xb], al
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + 0x18]
mov byte [ebp - 0xa], dl
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [ebp - 8], cl
mov edx, dword [ebp + 0xc]
mov al, byte [edx + 4]
mov byte [ebp - 7], al
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 8]
mov byte [ebp - 6], dl
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 0xc]
mov byte [ebp - 5], cl
mov edx, dword [ebp + 0xc]
mov al, byte [edx + 0x10]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 0x14]
mov byte [ebp - 3], dl
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 0x18]
mov byte [ebp - 2], cl
mov byte [ebp - 1], 0
mov dword [ebp - 0x34], 0x28
mov dword [ebp - 0x30], 0
push 0
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x28]
push eax
push 0x4d030
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x480528
cmp dword [ebp + 0x18], 0
je 0x480526
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004e8ae0
add esp, 0xc
jmp 0x480587
mov dword [ebp - 0x144], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x144], eax
push 0x104
push 0
lea edx, [ebp - 0x13c]
push edx
call fcn.004e8440
add esp, 0xc
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
push 0x55fd3c
lea ecx, [ebp - 0x13c]
push ecx
call fcn.004e894d
add esp, 0x14
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x38], 0
je 0x480599
mov eax, dword [ebp - 0x38]
push eax
call fcn.004e8e1d
add esp, 4
mov eax, dword [ebp - 0x140]
mov esp, ebp
pop ebp
ret