Function at 0x14004fb60
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 [0x1400e5430]
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 0x14004fbab
add ecx, dword [rdi + 0x3c]
cmp esi, ecx
jae 0x14004fbab
xor eax, eax
jmp 0x1400501ad
and qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [0x1400ba358]
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 0x14004fbf7
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 0x14004fc74
xor r14d, r14d
test esi, esi
je 0x14004fc74
lea edx, [rsi - 1]
mov eax, edx
mov dword [rsp + 0x50], edx
mov qword [rsp + 0x40], rax
cmp rax, qword [rdi + 8]
jb 0x14004fc55
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 0x14004fc74
mov dword [rsp + 0x30], ecx
mov esi, edx
mov r14d, ebp
test ebx, ebx
je 0x14004fcc7
xor ebx, ebx
cmp r12d, dword [rsp + 0x48]
jae 0x14004fcc7
mov r13d, r12d
cmp r13, qword [rdi + 8]
jb 0x14004fc9d
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 0x14004fcc7
add r15d, ebp
mov dword [rsp + 0x30], edx
mov ebx, ebp
add r12d, ebp
mov r13d, dword [rsp + 0x30]
test r14d, r14d
jne 0x14004fc1e
test ebx, ebx
jne 0x14004fc19
mov r14d, dword [rdi + 0x38]
sub r15d, esi
add r15d, ebp
cmp esi, r14d
jb 0x14004fda3
mov ebx, dword [rdi + 0x3c]
add ebx, r14d
cmp esi, ebx
jae 0x14004fd9a
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 0x14004fd40
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 0x14004fd6a
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 0x14004fef7
cmp esi, r14d
ja 0x14004fed0
lea eax, [r15 + rsi]
cmp r14d, eax
jae 0x14004fed0
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 0x14004fdf8
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 0x14004fe22
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 0x14004fec9
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 0x14004fea0
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 0x14004fe78
mov edx, dword [rsp + 0x38]
and dword [rsp + 0x38], 0
jmp 0x14004fefc
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 0x14004ff79
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 fcn.14007e7a0
mov eax, dword [rsp + 0x48]
cmp r14d, eax
ja 0x14004ff79
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 0x14004ff5b
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 0x14004ff3d
cmp dword [rsp + 0x50], 0
jbe 0x140050142
mov ebx, r13d
xor r14d, r14d
cmp rbx, qword [rdi + 8]
jb 0x14004ffa3
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 0x140050135
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 0x14004fba4
add dword [rsp + 0x34], r14d
mov r14d, 0
je 0x140050142
cmp r13d, ebx
ja 0x140050142
mov r12d, r13d
cmp r12, qword [rdi + 8]
jb 0x140050028
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 0x140050076
lea ebx, [r13 + 1]
cmp rbx, qword [rdi + 8]
jb 0x140050065
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 0x14005007b
mov r12d, dword [r8 + rdx*4 + 0xc]
mov ebx, dword [rsp + 0x34]
sub ebx, r14d
cmp r12d, ebx
ja 0x140050120
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 0x14005000c
jmp 0x140050139
mov rcx, qword [rdi + 0x50]
mov edx, r14d
mov r8d, ebx
add rdx, rcx
call fcn.14007e7a0
mov r14d, ebx
mov ebx, dword [rsp + 0x30]
cmp r13d, ebx
jbe 0x14004ffc2
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 0x1400501a9
mov esi, 0x1c
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, esi
mov dword [rdi + 0x5c], ebx
call fcn.1400809a0
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 0x1400501ab
xor ebp, ebp
mov eax, ebp
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14007e1c0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret