Function at 0x1400972a4
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x98
mov rax, qword [0x1402aaed0]
xor rax, rsp
mov qword [rbp - 1], rax
xor ebx, ebx
mov qword [rbp - 0x51], rdx
mov rsi, r9
mov r15d, r8d
mov r13, rcx
test rcx, rcx
jne 0x1400972e6
xor eax, eax
jmp 0x1400975ee
cmp r15d, 1
jle 0x1400972fa
lea ecx, [r8 - 1]
movsxd rax, ecx
cmp byte [rax + rdx], bl
cmove r15d, ecx
mov rcx, qword [r13 + 0x1018]
mov r12d, 0xffffffff
movsxd r14, dword [rbp + 0x7f]
test rcx, rcx
je 0x140097480
mov r8, rdx
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r9d, r15d
call fcn.140092930
test rax, rax
je 0x140097330
mov rdi, qword [rax + 0x28]
jmp 0x140097333
mov rdi, rbx
test rdi, rdi
jne 0x140097438
movsxd rdi, r15d
mov eax, 0xffffffff
mov r12, rbx
mov qword [rbp - 0x49], rbx
lea rcx, [rdi + 4]
cmp rcx, rax
jae 0x140097377
mov eax, 0xfffffffb
cmp rax, rdi
je 0x140097377
mov eax, 0xffffffe7
cmp rcx, rax
jae 0x140097377
lea rcx, [rdi + 0x1c]
call fcn.1401c2864
lea rcx, [rdi + 4]
jmp 0x14009737a
mov rax, rbx
mov rdx, rcx
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
call fcn.14008ba98
mov r8, qword [rbp - 0x51]
mov r9, rdi
mov rcx, rax
mov qword [rbp - 0x41], rax
mov rdx, qword [rax - 0x18]
call section..text
mov rdx, qword [rbp - 0x51]
mov r8d, r15d
xor ecx, ecx
call fcn.1400a59d0
mov rcx, qword [rbp - 0x41]
xor edx, edx
mov r8, rcx
mov dword [rsp + 0x20], ebx
mov dword [rdi + rcx], eax
mov r9d, dword [rcx - 0x18]
mov rcx, qword [r13 + 0x1018]
call fcn.140092930
test rax, rax
je 0x1400973db
mov rdi, qword [rax + 0x28]
jmp 0x1400973de
mov rdi, rbx
test rdi, rdi
je 0x14009741d
movsxd rdx, dword [rdi + 0x30]
lea rcx, [rdi + 0x34]
lea r9, [rbp - 0x49]
xor r8d, r8d
call fcn.14004cb48
mov r12, qword [rbp - 0x49]
test rsi, rsi
je 0x14009741d
cmp r14d, r12d
jl 0x14009741d
movsxd rdx, dword [rdi + 0x30]
lea r9, [rbp - 0x49]
mov r8, rsi
lea rcx, [rdi + 0x34]
call fcn.14004cb48
mov r12, qword [rbp - 0x49]
mov rcx, qword [rbp - 0x41]
call fcn.14008bb80
test r12, r12
je 0x140097433
mov eax, r12d
jmp 0x1400975ee
test rdi, rdi
je 0x140097476
test rsi, rsi
je 0x14009746b
cmp r14d, dword [rdi + 0x30]
jl 0x14009746b
movsxd r9, dword [rdi + 0x30]
lea r8, [rdi + 0x34]
mov rdx, r14
mov rcx, rsi
call section..text
cmp r14d, dword [rdi + 0x30]
jle 0x140097463
movsxd rax, dword [rdi + 0x30]
mov byte [rax + rsi], bl
mov eax, dword [rdi + 0x30]
jmp 0x1400975ee
test r14d, r14d
jne 0x1400972df
jmp 0x140097463
mov rdx, qword [rbp - 0x51]
mov r12d, 0xffffffff
mov rcx, qword [r13 + 0x1010]
mov r8, rdx
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r9d, r15d
call fcn.140092930
test rax, rax
je 0x1400974a3
mov rdi, qword [rax + 0x28]
jmp 0x1400974a6
mov rdi, rbx
test rdi, rdi
jne 0x14009755d
movsxd rdi, r15d
lea rax, [rdi + 4]
cmp rax, r12
jae 0x1400974e1
mov ecx, 0xfffffffb
cmp rcx, rdi
je 0x1400974e1
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x1400974e1
lea rcx, [rdi + 0x1c]
call fcn.1401c2864
mov rcx, rax
lea rax, [rdi + 4]
jmp 0x1400974e4
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
call fcn.14008ba98
mov r8, qword [rbp - 0x51]
mov r9, rdi
mov rcx, rax
mov qword [rbp - 0x41], rax
mov rdx, qword [rax - 0x18]
call section..text
mov r8d, r15d
xor ecx, ecx
mov r15, qword [rbp - 0x41]
mov rdx, r15
call fcn.1400a59d0
mov dword [rdi + r15], eax
mov r8, r15
mov r9d, dword [r15 - 0x18]
xor edx, edx
mov rcx, qword [r13 + 0x1010]
mov dword [rsp + 0x20], ebx
call fcn.140092930
test rax, rax
je 0x140097542
mov rdi, qword [rax + 0x28]
jmp 0x140097545
mov rdi, rbx
mov rcx, r15
call fcn.14008bb80
test rdi, rdi
je 0x1400972df
mov eax, 1
jmp 0x14009755f
mov eax, ebx
test rsi, rsi
je 0x14009760e
cmp r14d, dword [rdi]
jl 0x14009760e
test eax, eax
jne 0x140097612
mov rdx, qword [rdi + 0x38]
xor r8d, r8d
mov rcx, qword [r13]
call fcn.1401bcd08
test eax, eax
jne 0x1400972df
movsxd r8, dword [rdi]
lea edx, [rax + 1]
mov r9, qword [r13]
mov rcx, rsi
call fcn.1401c279c
test rax, rax
je 0x1400972df
mov edx, dword [rdi]
lea r8, [rbp - 0x31]
mov rcx, rsi
call fcn.140089af8
lea rdx, [rdi + 4]
mov r8d, 0x30
lea rcx, [rbp - 0x31]
call fcn.1401baf40
test eax, eax
jne 0x1400972df
cmp r14d, dword [rdi]
jle 0x1400975e0
movsxd rax, dword [rdi]
mov byte [rax + rsi], bl
test r14d, r14d
je 0x1400975ea
cmp r14d, dword [rdi]
jl 0x1400975ec
mov ebx, dword [rdi]
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1401b98c0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test eax, eax
je 0x1400975e0
movsxd rcx, dword [rdi]
cmp rcx, r12
jae 0x140097634
cmp r12, rcx
je 0x140097634
mov eax, 0xffffffe7
cmp rcx, rax
jae 0x140097634
add rcx, 0x18
call fcn.1401c2864
jmp 0x140097637
mov rax, rbx
movsxd rdx, dword [rdi]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call fcn.14008ba98
mov rdx, qword [rdi + 0x38]
xor r8d, r8d
mov rcx, qword [r13]
mov r15, rax
mov qword [rbp - 0x51], r14
call fcn.1401bcd08
test eax, eax
jne 0x1400972df
movsxd r8, dword [rdi]
lea edx, [rax + 1]
mov r9, qword [r13]
mov rcx, r15
call fcn.1401c279c
test rax, rax
je 0x1400972df
movsxd rdx, dword [rdi]
lea r9, [rbp - 0x51]
mov r8, rsi
mov rcx, r15
call fcn.14004cb48
mov rcx, r15
test eax, eax
jne 0x1400976da
call fcn.14008bb80
test rsi, rsi
jne 0x1400976ad
mov eax, dword [rbp - 0x51]
jmp 0x1400975ee
mov edx, dword [rbp - 0x51]
lea r8, [rbp - 0x31]
mov rcx, rsi
call fcn.140089af8
lea rdx, [rdi + 4]
mov r8d, 0x30
lea rcx, [rbp - 0x31]
call fcn.1401baf40
test eax, eax
cmove ebx, dword [rbp - 0x51]
jmp 0x1400975ec
call fcn.14008bb80
jmp 0x1400972df