Function at 0x1400af52c
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 [0x14030cf00]
xor rax, rsp
mov qword [rbp + 7], rax
mov eax, 0x7fffffff
mov qword [rbp - 0x41], rcx
mov r14, r9
mov rsi, r8
mov r13, rdx
mov rdi, rcx
cmp r8, rax
ja 0x1400af77f
mov r12, qword [rbp + 0x7f]
cmp r12, rax
ja 0x1400af77f
xor ebx, ebx
test rcx, rcx
je 0x1400af77f
cmp r8, 1
jbe 0x1400af599
cmp byte [r8 + rdx - 1], bl
jne 0x1400af599
dec rsi
mov rcx, qword [rcx + 0x1018]
mov r15d, 0xffffffff
test rcx, rcx
je 0x1400af7ab
mov r9d, esi
mov dword [rsp + 0x20], ebx
mov r8, r13
xor edx, edx
call fcn.1400a8a34
test rax, rax
je 0x1400af5d8
mov r15, qword [rax + 0x28]
test r15, r15
jne 0x1400af727
mov r15d, 0xffffffff
lea rcx, [rsi + 4]
mov qword [rbp - 0x49], rbx
mov rdi, rbx
cmp rcx, r15
jae 0x1400af607
mov eax, 0xfffffffb
cmp rax, rsi
je 0x1400af607
mov eax, 0xffffffe7
cmp rcx, rax
jae 0x1400af607
lea rcx, [rsi + 0x1c]
call fcn.1401ea40c
jmp 0x1400af60a
mov rax, rbx
movsxd rdx, esi
xor r9d, r9d
add rdx, 4
xor r8d, r8d
mov rcx, rax
call fcn.14009faa0
mov qword [rbp - 0x39], rax
mov r15, qword [rax - 0x18]
test rsi, rsi
je 0x1400af67a
test r13, r13
je 0x1400af646
cmp r15, rsi
jb 0x1400af646
mov r8, rsi
mov rdx, r13
mov rcx, rax
call fcn.14020df90
jmp 0x1400af67a
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.14020e630
test r13, r13
jne 0x1400af665
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x1400af675
cmp r15, rsi
jae 0x1400af67a
call fcn.1401e8db4
mov dword [rax], 0x22
call fcn.1401e7e2c
mov r8d, esi
mov rdx, r13
xor ecx, ecx
call fcn.1400c2ef8
mov rcx, qword [rbp - 0x39]
xor edx, edx
mov r15, qword [rbp - 0x41]
mov r8, rcx
mov dword [rsp + 0x20], ebx
mov dword [rsi + rcx], eax
mov r9d, dword [rcx - 0x18]
mov rcx, qword [r15 + 0x1018]
call fcn.1400a8a34
test rax, rax
je 0x1400af708
mov r15, qword [rax + 0x28]
mov qword [rbp - 0x51], r15
test r15, r15
je 0x1400af70f
movsxd rdx, dword [r15 + 0x30]
lea rcx, [r15 + 0x34]
lea r9, [rbp - 0x49]
xor r8d, r8d
call fcn.1400511ac
mov rdi, qword [rbp - 0x49]
mov qword [rbp - 0x51], r15
test r14, r14
je 0x1400af70f
movsxd rax, edi
mov qword [rbp - 0x51], r15
cmp r12, rax
jb 0x1400af70f
movsxd rdx, dword [r15 + 0x30]
lea r9, [rbp - 0x49]
mov r8, r14
lea rcx, [r15 + 0x34]
call fcn.1400511ac
mov rdi, qword [rbp - 0x49]
mov qword [rbp - 0x51], r15
jmp 0x1400af70f
mov qword [rbp - 0x51], rbx
mov r15, rbx
mov rcx, qword [rbp - 0x39]
call fcn.14009fb80
test rdi, rdi
je 0x1400af721
mov eax, edi
jmp 0x1400af781
cmp qword [rbp - 0x51], rbx
je 0x1400af7a1
lea rdi, [r15 + 0x30]
test r14, r14
je 0x1400af77a
movsxd r8, dword [rdi]
cmp r12, r8
jb 0x1400af77a
lea rdx, [r15 + 0x34]
test r8, r8
je 0x1400af76a
mov rcx, r14
test rdx, rdx
je 0x1400af750
call fcn.14020df90
jmp 0x1400af76a
mov r8, r12
xor edx, edx
call fcn.14020e630
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e7e2c
movsxd rax, dword [rdi]
cmp r12, rax
jbe 0x1400af776
mov byte [rax + r14], bl
mov eax, dword [rdi]
jmp 0x1400af781
test r12, r12
je 0x1400af776
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1401d9e80
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rdi, qword [rbp - 0x41]
mov r15d, 0xffffffff
mov rcx, qword [rdi + 0x1010]
mov r9d, esi
mov r8, r13
mov dword [rsp + 0x20], ebx
xor edx, edx
call fcn.1400a8a34
test rax, rax
je 0x1400af7d9
mov rdi, qword [rax + 0x28]
test rdi, rdi
jne 0x1400af8c8
mov rdi, qword [rbp - 0x41]
lea rax, [rsi + 4]
cmp rax, r15
jae 0x1400af801
mov ecx, 0xfffffffb
cmp rcx, rsi
je 0x1400af801
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x1400af801
lea rcx, [rsi + 0x1c]
call fcn.1401ea40c
jmp 0x1400af804
mov rax, rbx
movsxd rdx, esi
xor r9d, r9d
add rdx, 4
xor r8d, r8d
mov rcx, rax
call fcn.14009faa0
mov r15, rax
mov rax, qword [rax - 0x18]
mov qword [rbp - 0x39], rax
test rsi, rsi
je 0x1400af878
test r13, r13
je 0x1400af843
cmp rax, rsi
jb 0x1400af843
mov r8, rsi
mov rdx, r13
mov rcx, r15
call fcn.14020df90
jmp 0x1400af878
mov r8, rax
xor edx, edx
mov rcx, r15
call fcn.14020e630
test r13, r13
jne 0x1400af862
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x1400af873
cmp qword [rbp - 0x39], rsi
jae 0x1400af878
call fcn.1401e8db4
mov dword [rax], 0x22
call fcn.1401e7e2c
mov r8d, esi
mov rdx, r15
xor ecx, ecx
call fcn.1400c2ef8
mov dword [rsi + r15], eax
mov r8, r15
mov r9d, dword [r15 - 0x18]
xor edx, edx
mov rcx, qword [rdi + 0x1010]
mov dword [rsp + 0x20], ebx
call fcn.1400a8a34
test rax, rax
je 0x1400af8ad
mov rdi, qword [rax + 0x28]
jmp 0x1400af8b0
mov rdi, rbx
mov rcx, r15
call fcn.14009fb80
test rdi, rdi
je 0x1400af77f
mov ecx, 1
jmp 0x1400af8ca
mov ecx, ebx
test r14, r14
je 0x1400af968
movsxd rax, dword [rdi]
cmp r12, rax
jb 0x1400af968
test ecx, ecx
jne 0x1400af96c
mov r15, qword [rbp - 0x41]
xor r8d, r8d
mov rdx, qword [rdi + 0x38]
mov rcx, qword [r15]
call fcn.1401e7974
test eax, eax
jne 0x1400af77f
movsxd r8, dword [rdi]
lea edx, [rax + 1]
mov r9, qword [r15]
mov rcx, r14
call fcn.1401ea344
test rax, rax
je 0x1400af77f
movsxd rdx, dword [rdi]
lea r8, [rbp - 0x29]
mov rcx, r14
call fcn.14009d9e4
lea rdx, [rdi + 4]
mov r8d, 0x30
lea rcx, [rbp - 0x29]
call fcn.14020e9d0
test eax, eax
jne 0x1400af77f
movsxd rax, dword [rdi]
cmp r12, rax
jbe 0x1400af952
mov byte [rax + r14], bl
test r12, r12
je 0x1400af95f
movsxd rax, dword [rdi]
cmp r12, rax
jb 0x1400af961
mov ebx, dword [rdi]
mov eax, ebx
jmp 0x1400af781
test ecx, ecx
je 0x1400af952
movsxd rcx, dword [rdi]
mov eax, 0xffffffff
cmp rcx, rax
jae 0x1400af98e
mov eax, 0xffffffe7
cmp rcx, rax
jae 0x1400af98e
add rcx, 0x18
call fcn.1401ea40c
jmp 0x1400af991
mov rax, rbx
movsxd rdx, dword [rdi]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call fcn.14009faa0
mov r15, qword [rbp - 0x41]
xor r8d, r8d
mov rdx, qword [rdi + 0x38]
mov rsi, rax
mov qword [rbp - 0x51], r12
mov rcx, qword [r15]
call fcn.1401e7974
test eax, eax
jne 0x1400af77f
movsxd r8, dword [rdi]
lea edx, [rax + 1]
mov r9, qword [r15]
mov rcx, rsi
call fcn.1401ea344
test rax, rax
je 0x1400af77f
movsxd rdx, dword [rdi]
lea r9, [rbp - 0x51]
mov r8, r14
mov rcx, rsi
call fcn.1400511ac
mov rcx, rsi
test eax, eax
jne 0x1400afa34
call fcn.14009fb80
test r14, r14
je 0x1400afa2c
movsxd rdx, dword [rbp - 0x51]
lea r8, [rbp - 0x29]
mov rcx, r14
call fcn.14009d9e4
lea rdx, [rdi + 4]
mov r8d, 0x30
lea rcx, [rbp - 0x29]
call fcn.14020e9d0
test eax, eax
jne 0x1400af77f
mov eax, dword [rbp - 0x51]
jmp 0x1400af781
call fcn.14009fb80
jmp 0x1400af77f