Function at 0x18000bea8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x18004a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12d, dword [0x1801747d8]
xor esi, esi
mov qword [0x180174808], rsi
mov dword [0x18017482c], esi
test r12d, r12d
je 0x18000c1ac
mov rcx, qword [0x1801747f8]
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, qword [0x180176788]
mov rdi, rax
mov rdx, qword [rcx]
test rdx, rdx
je 0x18000bf22
mov rcx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov r14, rax
jmp 0x18000bf25
mov r14, rsi
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea rdx, [0x180040fc0]
mov rcx, rdi
lea r8d, [r9 + 3]
call qword [sym.imp.USER32.dll_GetTabbedTextExtentW]
movzx r15d, ax
add r15d, dword [rsp + 0x4c]
cmp qword [0x180174810], rsi
jne 0x18000bf81
mov ecx, 0x13880
call fcn.180021c94
mov qword [0x180174810], rax
test rax, rax
jne 0x18000bf81
call fcn.18000bb74
jmp 0x18000c173
cmp qword [0x1801747d8], rsi
ja 0x18000bf9d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [0x1801747d0]
xor r9d, r9d
mov rcx, qword [0x1801747e8]
xor r8d, r8d
mov edx, dword [rax]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [0x180174818]
mov ebx, esi
mov rdx, qword [0x180174820]
mov dword [rsp + 0x34], esi
jmp 0x18000c150
mov ecx, dword [rsp + 0x30]
mov r13d, esi
add ecx, ebx
mov ebx, ecx
mov dword [rsp + 0x30], ecx
je 0x18000c173
mov edx, dword [0x18017480c]
mov r10d, dword [rsp + 0x34]
mov r8, qword [0x1801747d8]
mov esi, edx
cmp rsi, r8
jb 0x18000c025
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r9, qword [0x1801747d0]
lea rax, [rsi + rsi*4]
lea rbp, [r9 + rax*4]
mov ecx, dword [rbp + 8]
add ecx, r10d
cmp ecx, 0x9c40
ja 0x18000c173
inc edx
cmp edx, r12d
jae 0x18000c080
mov esi, edx
cmp rsi, r8
jb 0x18000c073
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rax, [rsi + rsi*4]
mov esi, dword [r9 + rax*4]
sub esi, dword [rbp]
jmp 0x18000c083
mov esi, dword [rbp + 0xc]
mov edx, r13d
cmp esi, ebx
ja 0x18000c129
mov rcx, qword [0x1801747f0]
mov rax, qword [0x180174810]
mov r8d, dword [rbp + 0xc]
add rdx, qword [0x180174820]
mov r11, qword [rcx]
mov ebx, r10d
mov r10d, dword [rbp + 8]
mov qword [rsp + 0x20], r10
lea r9, [rax + rbx*2]
call qword [r11 + 0x18]
mov rax, qword [0x180174810]
xor r9d, r9d
mov r8d, dword [rbp + 8]
mov rcx, rdi
and qword [rsp + 0x20], 0
lea rdx, [rax + rbx*2]
call qword [sym.imp.USER32.dll_GetTabbedTextExtentW]
mov r10d, dword [rsp + 0x34]
movzx ecx, ax
mov eax, dword [0x18017482c]
cmp eax, ecx
cmovl eax, ecx
add r13d, esi
mov dword [0x18017482c], eax
mov dword [rbp + 4], r10d
add r10d, dword [rbp + 8]
mov edx, dword [0x18017480c]
mov ebx, dword [rsp + 0x30]
inc edx
mov dword [rsp + 0x34], r10d
mov dword [0x18017480c], edx
sub ebx, r13d
jne 0x18000bff2
xor esi, esi
mov ebx, esi
jmp 0x18000c13d
mov rcx, qword [0x180174820]
add rdx, rcx
mov r8d, ebx
call fcn.180025930
xor esi, esi
mov r8d, dword [0x180174818]
sub r8d, ebx
mov edx, ebx
add rdx, qword [0x180174820]
mov rcx, qword [0x1801747e8]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000bfd2
add dword [0x18017482c], r15d
lea rcx, [0x1801747d0]
mov edx, 1
call fcn.18000b3fc
test r14, r14
je 0x18000c19c
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [0x1801747f8]
mov rdx, rdi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180021cb0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret