Function at 0x4815e3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
cmp dword [ebp + 8], 0xffffffff
jne 0x481637
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._PATAWrite_:_Write_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 0x481878
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
cmp dword [ebp + 0x18], 0
je 0x4816bd
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 0x4816a9
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 0x56124c
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 0x481878
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004e9b20
add esp, 0xc
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 0x4816e1
mov word [ebp - 0x26], 4
jmp 0x481703
cmp dword [ebp + 0x1c], 1
jne 0x4816ef
mov word [ebp - 0x26], 0xc
jmp 0x481703
cmp dword [ebp + 0x1c], 2
jne 0x4816fd
mov word [ebp - 0x26], 0x14
jmp 0x481703
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 [0x560eb0]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], 1
je 0x48172e
cmp dword [ebp + 0x1c], 3
jne 0x481770
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 0x481860
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 - 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 0x561284
lea ecx, [ebp - 0x13c]
push ecx
call fcn.004e998d
add esp, 0x18
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x38], 0
je 0x481872
mov eax, dword [ebp - 0x38]
push eax
call fcn.004e9e5d
add esp, 4
mov eax, dword [ebp - 0x140]
mov esp, ebp
pop ebp
ret