Function at 0x4805a3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
cmp dword [ebp + 8], 0xffffffff
jne 0x4805f7
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._PATAWrite_:_Write_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 0x480838
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
cmp dword [ebp + 0x18], 0
je 0x48067d
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 0x480669
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 0x55fdbc
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 0x480838
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004e8ae0
add esp, 0xc
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 0x4806a1
mov word [ebp - 0x26], 4
jmp 0x4806c3
cmp dword [ebp + 0x1c], 1
jne 0x4806af
mov word [ebp - 0x26], 0xc
jmp 0x4806c3
cmp dword [ebp + 0x1c], 2
jne 0x4806bd
mov word [ebp - 0x26], 0x14
jmp 0x4806c3
mov word [ebp - 0x26], 0x1c
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 0x4806ee
cmp dword [ebp + 0x1c], 3
jne 0x480730
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
jne 0x480820
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 - 0x2c]
xor edx, edx
mov dl, byte [ecx + 1]
push edx
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov cl, byte [eax]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
push 0x55fdf4
lea ecx, [ebp - 0x13c]
push ecx
call fcn.004e894d
add esp, 0x18
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x38], 0
je 0x480832
mov eax, dword [ebp - 0x38]
push eax
call fcn.004e8e1d
add esp, 4
mov eax, dword [ebp - 0x140]
mov esp, ebp
pop ebp
ret