Function at 0x48134f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
cmp dword [ebp + 8], 0xffffffff
jne 0x4813a3
push 0x104
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.004e9480
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.004e998d
add esp, 0xc
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4815df
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
cmp dword [ebp + 0x18], 0
je 0x481415
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 3
mov edx, dword [ebp + 0x18]
push edx
call fcn.004bf250
add esp, 0x10
test eax, eax
jne 0x481415
push 0x104
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.004e9480
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
push 0x561194
lea eax, [ebp - 0x13c]
push eax
call fcn.004e998d
add esp, 0xc
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4815df
push 0x28
push 0
lea edx, [ebp - 0x28]
push edx
call fcn.004e9480
add esp, 0xc
mov word [ebp - 0x28], 0x28
cmp dword [ebp + 0x1c], 0
jne 0x481439
mov word [ebp - 0x26], 2
jmp 0x48145b
cmp dword [ebp + 0x1c], 1
jne 0x481447
mov word [ebp - 0x26], 0xa
jmp 0x48145b
cmp dword [ebp + 0x1c], 2
jne 0x481455
mov word [ebp - 0x26], 0x12
jmp 0x48145b
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 [0x560eb0]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], 1
je 0x481486
cmp dword [ebp + 0x1c], 3
jne 0x4814c8
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 0x481568
cmp dword [ebp + 0x18], 0
je 0x481566
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004e9b20
add esp, 0xc
jmp 0x4815c7
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.004e9480
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 0x5611cc
lea ecx, [ebp - 0x13c]
push ecx
call fcn.004e998d
add esp, 0x14
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x38], 0
je 0x4815d9
mov eax, dword [ebp - 0x38]
push eax
call fcn.004e9e5d
add esp, 4
mov eax, dword [ebp - 0x140]
mov esp, ebp
pop ebp
ret