Function at 0x140242280
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x1402422de
mov rdx, qword [rdi + 0x50]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x1402422de
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
movzx eax, byte [rdx]
jmp 0x1402424cf
cmp qword [rdi + 0x80], 0
jne 0x1402422f2
mov eax, 0xffffffff
jmp 0x1402424cf
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14024231f
mov rdx, qword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov rcx, qword [rdi + 0x80]
cmp qword [rdi + 0x68], 0
jne 0x140242359
mov r9, rcx
mov edx, 1
mov r8d, edx
lea rcx, [rbp - 0x2f]
call fcn.1402d41fc
cmp rax, 1
movzx ebx, byte [rbp - 0x2f]
je 0x1402424cd
mov ebx, 0xffffffff
jmp 0x1402424cd
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], setsockopt
mov byte [rbp - 0x28], 0
call fcn.1402cc064
mov r8d, eax
cmp eax, 0xffffffff
je 0x14024248d
nop
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
cmp rcx, rdx
jae 0x1402423ad
lea rax, [rcx + 1]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rcx], r8b
mov byte [rax + rcx + 1], 0
jmp 0x1402423c1
movzx r9d, r8b
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x28]
call fcn.140069d50
mov r11, qword [rdi + 0x68]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r8, qword [rbp - 0x28]
mov rax, qword [r11]
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x2f]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + 0x74]
mov rcx, r11
call qword [rax + 0x30]
test eax, eax
js 0x14024248d
cmp eax, 1
jg 0x140242537
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x38], rax
lea rax, [rbp - 0x28]
jne 0x1402424f0
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov r10, qword [rbp - 0x40]
sub r10, rax
mov r8, qword [rbp - 0x18]
cmp r8, r10
cmovb r10, r8
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rcx, qword [rbp - 0x28]
sub r8, r10
mov qword [rbp - 0x18], r8
inc r8
lea rdx, [rcx + r10]
call fcn.1402b53e0
mov rcx, qword [rdi + 0x80]
call fcn.1402cc064
mov r8d, eax
cmp eax, 0xffffffff
jne 0x140242380
mov ebx, 0xffffffff
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x1402424cd
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1402424c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140242556
call fcn.140296f94
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140296f70
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov rbx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x40]
sub rbx, rcx
add rbx, rax
test rbx, rbx
jle 0x14024252e
nop dword [rax]
dec rbx
movsx ecx, byte [rbx + rcx]
mov rdx, qword [rdi + 0x80]
call fcn.1402cc9c0
test rbx, rbx
jle 0x14024252e
mov rcx, qword [rbp - 0x40]
jmp 0x140242510
movzx ebx, byte [rbp - 0x30]
jmp 0x140242492
cmp eax, 3
jne 0x14024248d
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
movsx ebx, byte [rax]
jmp 0x140242492
call fcn.1402ba3ec
int3