Function at 0x14010541c
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
mov ecx, dword [rcx + 0x38]
mov rbx, r9
mov r10, r8
mov qword [rsp + 0x78], r8
mov esi, edx
cmp edx, ecx
jb 0x140105467
add ecx, dword [rdi + 0x3c]
cmp esi, ecx
jae 0x140105467
xor eax, eax
jmp 0x140105a6b
and qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [0x14013c5a8]
lea r8d, [r9 + 3]
mov rcx, r10
call qword [sym.imp.USER32.dll_GetTabbedTextExtentW]
and dword [rsp + 0x58], 0
movzx eax, ax
add eax, dword [rbx + 0x14]
mov dword [rsp + 0x68], eax
mov eax, dword [rdi + 8]
mov dword [rsp + 0x48], eax
cmp rsi, qword [rdi + 8]
jb 0x1401054b3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [rdi]
mov ebp, 1
lea rcx, [rsi + rsi*4]
mov r13d, dword [rax + rcx*4 + 8]
mov r15d, esi
mov r14d, ebp
mov ebx, ebp
lea r12d, [rsi + 1]
mov dword [rsp + 0x30], r13d
test r14d, r14d
je 0x140105530
xor r14d, r14d
test esi, esi
je 0x140105530
lea edx, [rsi - 1]
mov eax, edx
mov dword [rsp + 0x50], edx
mov qword [rsp + 0x40], rax
cmp rax, qword [rdi + 8]
jb 0x140105511
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rax + rax*4]
mov rax, qword [rdi]
mov ecx, dword [rax + rcx*4 + 8]
add ecx, r13d
cmp ecx, 0x9c40
ja 0x140105530
mov dword [rsp + 0x30], ecx
mov esi, edx
mov r14d, ebp
test ebx, ebx
je 0x140105583
xor ebx, ebx
cmp r12d, dword [rsp + 0x48]
jae 0x140105583
mov r13d, r12d
cmp r13, qword [rdi + 8]
jb 0x140105559
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [rdi]
lea rcx, [r12*4]
add rcx, r13
mov edx, dword [rax + rcx*4 + 8]
add edx, dword [rsp + 0x30]
cmp edx, 0x9c40
ja 0x140105583
add r15d, ebp
mov dword [rsp + 0x30], edx
mov ebx, ebp
add r12d, ebp
mov r13d, dword [rsp + 0x30]
test r14d, r14d
jne 0x1401054da
test ebx, ebx
jne 0x1401054d5
mov r14d, dword [rdi + 0x38]
sub r15d, esi
add r15d, ebp
cmp esi, r14d
jb 0x14010565f
mov ebx, dword [rdi + 0x3c]
add ebx, r14d
cmp esi, ebx
jae 0x140105656
sub ebx, esi
mov eax, r15d
mov r14d, esi
sub eax, ebx
lea r13d, [rbx + rsi]
lea ecx, [rax - 1]
lea r12d, [r13 - 1]
mov dword [rsp + 0x50], eax
add ecx, r13d
mov eax, esi
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x30], ecx
cmp rax, qword [rdi + 8]
jb 0x1401055fc
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rax, [rax + rax*4]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
cmp r12, qword [rdi + 8]
jb 0x140105626
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [rdi]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x60]
mov edx, dword [r8 + rdx*4 + 4]
lea rcx, [r12 + r12*4]
xor r9d, r9d
mov r12d, dword [rax + rcx*4 + 8]
add r12d, dword [rax + rcx*4 + 4]
sub r12d, edx
mov dword [rsp + 0x38], r12d
jmp 0x1401057b3
cmp esi, r14d
ja 0x14010578c
lea eax, [r15 + rsi]
cmp r14d, eax
jae 0x14010578c
mov eax, r15d
mov ebx, r15d
lea r12d, [r14 - 1]
sub ebx, r14d
mov r13d, esi
add ebx, esi
sub eax, ebx
add r12d, ebx
lea ecx, [rax - 1]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], r12d
add ecx, esi
mov rax, r14
mov dword [rsp + 0x30], ecx
cmp r14, qword [rdi + 8]
jb 0x1401056b4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rax, [rax + rax*4]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
cmp r12, qword [rdi + 8]
jb 0x1401056de
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [rdi]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x60]
mov edx, dword [r8 + rdx*4 + 4]
lea rcx, [r12 + r12*4]
xor r9d, r9d
mov r12d, dword [rax + rcx*4 + 8]
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x34], r9d
add r12d, dword [rax + rcx*4 + 4]
mov eax, dword [rsp + 0x30]
sub r12d, edx
cmp esi, eax
ja 0x140105785
mov ecx, esi
mov qword [rsp + 0x70], rcx
lea rdx, [rcx + rcx*4]
shl rdx, 2
sub eax, esi
lea r8d, [rax + rbp]
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x40], r8
cmp rcx, qword [rdi + 8]
jb 0x14010575c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [rdi]
add rcx, rbp
add rdx, 0x14
add r9d, dword [rax + rdx - 0xc]
sub qword [rsp + 0x40], rbp
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x34], r9d
mov qword [rsp + 0x60], rdx
jne 0x140105734
mov edx, dword [rsp + 0x38]
and dword [rsp + 0x38], 0
jmp 0x1401057b8
xor edx, edx
lea eax, [rsi - 1]
xor r12d, r12d
and dword [rsp + 0x48], edx
add eax, r15d
xor r9d, r9d
xor ebx, ebx
xor r14d, r14d
and dword [rsp + 0x38], edx
mov dword [rsp + 0x30], eax
mov r13d, esi
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x34], r9d
test ebx, ebx
je 0x140105836
mov rcx, qword [rdi + 0x40]
mov eax, edx
mov r8d, r12d
lea rdx, [rcx + rax*2]
lea rcx, [rcx + r9*2]
add r8, r8
call qword [sym.imp.MSVCR120.dll_memmove]
mov eax, dword [rsp + 0x48]
cmp r14d, eax
ja 0x140105836
mov ebx, dword [rsp + 0x34]
mov ecx, r14d
lea r12, [rcx + rcx*4]
mov qword [rsp + 0x40], rcx
shl r12, 2
sub eax, r14d
lea r14d, [rax + rbp]
cmp rcx, qword [rdi + 8]
jb 0x140105818
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [rdi]
add rcx, rbp
add r12, 0x14
mov dword [r12 + rax - 0x10], ebx
add ebx, dword [r12 + rax - 0xc]
mov qword [rsp + 0x40], rcx
sub r14, rbp
jne 0x1401057fa
cmp dword [rsp + 0x50], 0
jbe 0x140105a00
mov ebx, r13d
xor r14d, r14d
cmp rbx, qword [rdi + 8]
jb 0x140105860
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [rdi]
lea rcx, [rbx + rbx*4]
xor r9d, r9d
mov edx, dword [rax + rcx*4]
mov rcx, qword [rdi + 0x18]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1401059f3
mov r8d, dword [rdi + 0x48]
mov rcx, qword [rdi + 0x18]
and dword [rsp + 0x34], 0
and qword [rsp + 0x20], 0
mov edx, r14d
lea r9, [rsp + 0x34]
add rdx, qword [rdi + 0x50]
sub r8d, r14d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140105460
add dword [rsp + 0x34], r14d
mov r14d, 0
je 0x140105a00
cmp r13d, ebx
ja 0x140105a00
mov r12d, r13d
cmp r12, qword [rdi + 8]
jb 0x1401058e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r8, qword [rdi]
lea rdx, [r12 + r12*4]
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x40], rdx
cmp r13d, ebx
jae 0x140105933
lea ebx, [r13 + 1]
cmp rbx, qword [rdi + 8]
jb 0x140105922
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [rdi]
lea rcx, [rbx + rbx*4]
mov r12d, dword [rax + rcx*4]
sub r12d, dword [r8 + rdx*4]
jmp 0x140105938
mov r12d, dword [r8 + rdx*4 + 0xc]
mov ebx, dword [rsp + 0x34]
sub ebx, r14d
cmp r12d, ebx
ja 0x1401059dd
mov ecx, dword [r8 + rdx*4 + 8]
mov r11, qword [rdi + 0x20]
mov r8d, dword [r8 + rdx*4 + 0xc]
mov rax, qword [rdi + 0x40]
mov ebx, dword [rsp + 0x38]
mov r10, qword [r11]
mov qword [rsp + 0x20], rcx
mov edx, r14d
lea r9, [rax + rbx*2]
add rdx, qword [rdi + 0x50]
mov rcx, r11
call qword [r10 + 0x18]
mov rax, qword [rdi + 0x40]
mov rcx, qword [rsp + 0x78]
and qword [rsp + 0x20], 0
lea rdx, [rax + rbx*2]
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, dword [rax + rbx*4 + 8]
call qword [sym.imp.USER32.dll_GetTabbedTextExtentW]
movzx ecx, ax
mov eax, dword [rsp + 0x58]
cmp eax, ecx
cmovl eax, ecx
mov ecx, dword [rsp + 0x38]
add r13d, ebp
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x50]
add r14d, r12d
mov dword [rax + rbx*4 + 4], ecx
add ecx, dword [rax + rbx*4 + 8]
mov ebx, dword [rsp + 0x30]
mov dword [rsp + 0x38], ecx
cmp r13d, ebx
jbe 0x1401058c9
jmp 0x1401059f7
mov rcx, qword [rdi + 0x50]
mov edx, r14d
mov r8d, ebx
add rdx, rcx
call qword [sym.imp.MSVCR120.dll_memmove]
mov r14d, ebx
mov ebx, dword [rsp + 0x30]
cmp r13d, ebx
jbe 0x14010587f
mov ebx, dword [rsp + 0x58]
mov dword [rdi + 0x38], esi
mov dword [rdi + 0x3c], r15d
add ebx, dword [rsp + 0x68]
cmp dword [rdi + 0x5c], ebx
jge 0x140105a67
mov esi, 0x1c
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, esi
mov dword [rdi + 0x5c], ebx
call sub.MSVCR120.dll_memset
mov rcx, qword [rdi + 0x28]
and dword [rsp + 0x88], 0
lea eax, [rbx - 1]
lea r8, [rsp + 0x80]
mov r9d, ebp
xor edx, edx
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x84], ebp
mov dword [rsp + 0x8c], eax
call qword [sym.imp.USER32.dll_SetScrollInfo]
jmp 0x140105a69
xor ebp, ebp
mov eax, ebp
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14010a480
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret