Function at 0x1400af5cc
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 [0x14030ef00]
xor rax, rsp
mov qword [rbp - 1], rax
mov eax, 0x7fffffff
mov qword [rbp - 0x49], rcx
mov r14, r9
mov rsi, r8
mov r12, rdx
mov rdi, rcx
cmp r8, rax
ja 0x1400af807
mov r15, qword [rbp + 0x7f]
cmp r15, rax
ja 0x1400af807
xor ebx, ebx
test rcx, rcx
je 0x1400af807
cmp r8, 1
jbe 0x1400af639
cmp byte [r8 + rdx - 1], bl
jne 0x1400af639
dec rsi
mov rcx, qword [rcx + 0x1018]
mov r13d, 0xffffffff
test rcx, rcx
je 0x1400af82f
mov r9d, esi
mov dword [rsp + 0x20], ebx
mov r8, r12
xor edx, edx
call fcn.1400a8acc
test rax, rax
je 0x1400af678
mov r13, qword [rax + 0x28]
test r13, r13
jne 0x1400af7aa
mov r13d, 0xffffffff
lea rcx, [rsi + 4]
mov qword [rbp - 0x51], rbx
cmp rcx, r13
jae 0x1400af6a4
mov eax, 0xfffffffb
cmp rax, rsi
je 0x1400af6a4
mov eax, 0xffffffe7
cmp rcx, rax
jae 0x1400af6a4
lea rcx, [rsi + 0x1c]
call fcn.1401ed1fc
jmp 0x1400af6a7
mov rax, rbx
movsxd rdx, esi
xor r9d, r9d
add rdx, 4
xor r8d, r8d
mov rcx, rax
call fcn.14009fb24
mov qword [rbp - 0x41], rax
mov r13, qword [rax - 0x18]
test rsi, rsi
je 0x1400af717
test r12, r12
je 0x1400af6e3
cmp r13, rsi
jb 0x1400af6e3
mov r8, rsi
mov rdx, r12
mov rcx, rax
call fcn.140210d80
jmp 0x1400af717
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.140211420
test r12, r12
jne 0x1400af702
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x1400af712
cmp r13, rsi
jae 0x1400af717
call fcn.1401ebba4
mov dword [rax], 0x22
call fcn.1401eac1c
mov r8d, esi
mov rdx, r12
xor ecx, ecx
call fcn.1400c2fc8
mov rcx, qword [rbp - 0x41]
xor edx, edx
mov r8, rcx
mov dword [rsp + 0x20], ebx
mov dword [rsi + rcx], eax
mov r9d, dword [rcx - 0x18]
mov rcx, qword [rdi + 0x1018]
call fcn.1400a8acc
test rax, rax
je 0x1400af7d3
mov rdi, qword [rax + 0x28]
mov r13, rdi
test rdi, rdi
je 0x1400af78f
movsxd rdx, dword [rdi + 0x30]
lea rcx, [rdi + 0x34]
lea r9, [rbp - 0x51]
xor r8d, r8d
call fcn.1400511b8
test r14, r14
je 0x1400af78f
movsxd rax, dword [rbp - 0x51]
cmp r15, rax
jb 0x1400af78f
movsxd rdx, dword [rdi + 0x30]
lea r9, [rbp - 0x51]
mov r8, r14
lea rcx, [rdi + 0x34]
call fcn.1400511b8
mov rdi, qword [rbp - 0x49]
mov rcx, qword [rbp - 0x41]
call fcn.14009fc04
mov rax, qword [rbp - 0x51]
test rax, rax
jne 0x1400af809
test r13, r13
je 0x1400af829
lea rdi, [r13 + 0x30]
test r14, r14
je 0x1400af802
movsxd r8, dword [rdi]
cmp r15, r8
jb 0x1400af802
lea rdx, [r13 + 0x34]
test r8, r8
je 0x1400af7f2
mov rcx, r14
test rdx, rdx
je 0x1400af7d8
call fcn.140210d80
jmp 0x1400af7f2
mov r13, rbx
jmp 0x1400af793
mov r8, r15
xor edx, edx
call fcn.140211420
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401eac1c
movsxd rax, dword [rdi]
cmp r15, rax
jbe 0x1400af7fe
mov byte [rax + r14], bl
mov eax, dword [rdi]
jmp 0x1400af809
test r15, r15
je 0x1400af7fe
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1401dbdb0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r13d, 0xffffffff
mov rcx, qword [rdi + 0x1010]
mov r9d, esi
mov r8, r12
mov dword [rsp + 0x20], ebx
xor edx, edx
call fcn.1400a8acc
test rax, rax
je 0x1400af85d
mov rdi, qword [rax + 0x28]
test rdi, rdi
jne 0x1400af94c
mov rdi, qword [rbp - 0x49]
lea rax, [rsi + 4]
cmp rax, r13
jae 0x1400af885
mov ecx, 0xfffffffb
cmp rcx, rsi
je 0x1400af885
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x1400af885
lea rcx, [rsi + 0x1c]
call fcn.1401ed1fc
jmp 0x1400af888
mov rax, rbx
movsxd rdx, esi
xor r9d, r9d
add rdx, 4
xor r8d, r8d
mov rcx, rax
call fcn.14009fb24
mov r13, rax
mov rax, qword [rax - 0x18]
mov qword [rbp - 0x41], rax
test rsi, rsi
je 0x1400af8fc
test r12, r12
je 0x1400af8c7
cmp rax, rsi
jb 0x1400af8c7
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.140210d80
jmp 0x1400af8fc
mov r8, rax
xor edx, edx
mov rcx, r13
call fcn.140211420
test r12, r12
jne 0x1400af8e6
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x1400af8f7
cmp qword [rbp - 0x41], rsi
jae 0x1400af8fc
call fcn.1401ebba4
mov dword [rax], 0x22
call fcn.1401eac1c
mov r8d, esi
mov rdx, r13
xor ecx, ecx
call fcn.1400c2fc8
mov dword [rsi + r13], eax
mov r8, r13
mov r9d, dword [r13 - 0x18]
xor edx, edx
mov rcx, qword [rdi + 0x1010]
mov dword [rsp + 0x20], ebx
call fcn.1400a8acc
test rax, rax
je 0x1400af931
mov rdi, qword [rax + 0x28]
jmp 0x1400af934
mov rdi, rbx
mov rcx, r13
call fcn.14009fc04
test rdi, rdi
je 0x1400af807
mov ecx, 1
jmp 0x1400af94e
mov ecx, ebx
test r14, r14
je 0x1400af9ee
movsxd rax, dword [rdi]
cmp r15, rax
jb 0x1400af9ee
test ecx, ecx
jne 0x1400af9f2
mov r12, qword [rbp - 0x49]
xor r8d, r8d
mov rdx, qword [rdi + 0x38]
mov rcx, qword [r12]
call fcn.1401ea764
test eax, eax
jne 0x1400af807
movsxd r8, dword [rdi]
lea edx, [rax + 1]
mov r9, qword [r12]
mov rcx, r14
call fcn.1401ed134
test rax, rax
je 0x1400af807
movsxd rdx, dword [rdi]
lea r8, [rbp - 0x31]
mov rcx, r14
call fcn.14009da68
lea rdx, [rdi + 4]
mov r8d, 0x30
lea rcx, [rbp - 0x31]
call fcn.1402117c0
test eax, eax
jne 0x1400af807
movsxd rax, dword [rdi]
cmp r15, rax
jbe 0x1400af9d8
mov byte [rax + r14], bl
test r15, r15
je 0x1400af9e5
movsxd rax, dword [rdi]
cmp r15, rax
jb 0x1400af9e7
mov ebx, dword [rdi]
mov eax, ebx
jmp 0x1400af809
test ecx, ecx
je 0x1400af9d8
movsxd rcx, dword [rdi]
mov eax, 0xffffffff
cmp rcx, rax
jae 0x1400afa14
mov eax, 0xffffffe7
cmp rcx, rax
jae 0x1400afa14
add rcx, 0x18
call fcn.1401ed1fc
jmp 0x1400afa17
mov rax, rbx
movsxd rdx, dword [rdi]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call fcn.14009fb24
mov r12, qword [rbp - 0x49]
xor r8d, r8d
mov rdx, qword [rdi + 0x38]
mov rsi, rax
mov qword [rbp - 0x51], r15
mov rcx, qword [r12]
call fcn.1401ea764
test eax, eax
jne 0x1400af807
movsxd r8, dword [rdi]
lea edx, [rax + 1]
mov r9, qword [r12]
mov rcx, rsi
call fcn.1401ed134
test rax, rax
je 0x1400af807
movsxd rdx, dword [rdi]
lea r9, [rbp - 0x51]
mov r8, r14
mov rcx, rsi
call fcn.1400511b8
mov rcx, rsi
test eax, eax
jne 0x1400afabc
call fcn.14009fc04
test r14, r14
je 0x1400afab4
movsxd rdx, dword [rbp - 0x51]
lea r8, [rbp - 0x31]
mov rcx, r14
call fcn.14009da68
lea rdx, [rdi + 4]
mov r8d, 0x30
lea rcx, [rbp - 0x31]
call fcn.1402117c0
test eax, eax
jne 0x1400af807
mov eax, dword [rbp - 0x51]
jmp 0x1400af809
call fcn.14009fc04
jmp 0x1400af807