Function at 0x1400110d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rdx + 0x18]
mov rsi, rdx
mov eax, dword [rcx]
cmp eax, 1
jg 0x140087ae4
mov rax, qword [rsi]
xor r15d, r15d
movabs r12, 0x8000000000000000
mov qword [rsi + 8], r15
xor r14b, r14b
mov qword [rsp + 0x70], rbp
mov byte [rax], r15b
cmp dword [rdi + 0x10], r15d
je 0x140087b0a
mov rbx, r15
mov eax, dword [rdi + 0x10]
cmp dword [rdi + 0x14], eax
je 0x14001126e
movsxd rdx, dword [rdi + 0x14]
mov rax, qword [rdi + 8]
inc rbx
movzx ecx, byte [rdx + rax]
lea eax, [rdx + 1]
mov byte [rsp + rbx + 0x5f], cl
mov dword [rdi + 0x14], eax
cmp rbx, 1
jb 0x140011122
add qword [rdi + 0x18], rbx
test rbx, rbx
je 0x1400112ab
movzx ebp, byte [rsp + 0x60]
mov r14b, 1
cmp bpl, 0xd
je 0x140011209
cmp bpl, 0xa
je 0x140011255
mov rcx, qword [rsi + 0x18]
mov eax, dword [rcx]
cmp eax, 1
jg 0x140087b1c
mov rax, qword [rsi + 8]
add rax, 2
cmp qword [rsi + 0x10], rax
jb 0x1400111b2
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
mov byte [rcx + rax], bpl
inc qword [rsi + 8]
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
mov byte [rcx + rax], r15b
jmp 0x140011115
cmp rax, 0x41c2
jae 0x140087b5c
add rax, rax
mov qword [rsi + 0x10], rax
mov rcx, rax
test rax, rax
je 0x140087c10
add rcx, 0xf
and rcx, 0xfffffffffffffff0
mov qword [rsi + 0x10], rcx
call fcn.140025aa8
mov rdx, qword [rsi]
mov rbx, rax
test rdx, rdx
je 0x140011204
mov r8, qword [rsi + 8]
mov rcx, rax
inc r8
call fcn.140025590
mov rcx, qword [rsi]
call fcn.140025b50
mov qword [rsi], rbx
jmp 0x140011193
cmp dword [rdi + 0x10], r15d
je 0x140087c1a
mov rbx, r15
mov eax, dword [rdi + 0x10]
cmp dword [rdi + 0x14], eax
je 0x140087c2c
movsxd rdx, dword [rdi + 0x14]
mov rax, qword [rdi + 8]
inc rbx
movzx ecx, byte [rdx + rax]
lea eax, [rdx + 1]
mov byte [rsp + rbx + 0x5f], cl
mov dword [rdi + 0x14], eax
cmp rbx, 1
jb 0x140011216
add qword [rdi + 0x18], rbx
test rbx, rbx
je 0x140011255
cmp byte [rsp + 0x60], 0xa
jne 0x140087c69
mov al, 1
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
lea r9, [rsp + 0x68]
mov r8d, 0x10000
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001114d
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14001114d
mov dword [rdi + 0x10], eax
mov dword [rdi + 0x14], r15d
jmp 0x14001112e
test r14b, r14b
jne 0x140011255
xor al, al
jmp 0x140011257
dec eax
mov dword [rcx], eax
mov rcx, rdx
call fcn.140010a08
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsi + reloc.WSOCK32.dll_recv], 0x10
call fcn.140025aa8
mov qword [rsi], rax
jmp 0x1400110f6
mov rcx, rdi
mov qword [rdi + 0x10], r15
call fcn.140005ac0
nop
jmp 0x14001111f
dec eax
mov dword [rcx], eax
mov rcx, rsi
call fcn.140010a08
mov rdx, qword [rsi + 8]
add rdx, 2
call fcn.14000422c
mov rcx, rax
mov qword [rsi + 0x10], rax
call fcn.140025aa8
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
inc r8
mov rcx, rax
mov rbx, rax
call fcn.140025590
nop
jmp 0x140011204
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
cmp rax, 0x2000000
jae 0x140087bbe
test rax, rax
jns 0x140087b79
addsd xmm0, qword [0x1400c5bc8]
mulsd xmm0, qword [0x1400c5ba8]
jmp 0x140087b93
addsd xmm0, qword [0x1400c5bc8]
mulsd xmm0, qword [0x1400c5ba0]
xor ecx, ecx
comisd xmm0, xmmword [0x1400c5bc0]
jb 0x140087c03
subsd xmm0, qword [0x1400c5bc0]
comisd xmm0, xmmword [0x1400c5bc0]
jb 0x140087c00
cvttsd2si rax, xmm0
add rax, rcx
jmp 0x1400111c1
cmp rax, 0x8000000
jae 0x140087bcd
test rax, rax
jns 0x140087b8b
jmp 0x140087b83
test rax, rax
jns 0x140087bda
addsd xmm0, qword [0x1400c5bc8]
mulsd xmm0, qword [0x1400c5b98]
xor ecx, ecx
comisd xmm0, xmmword [0x1400c5bc0]
jb 0x140087c03
subsd xmm0, qword [0x1400c5bc0]
comisd xmm0, xmmword [0x1400c5bc0]
jae 0x140087c03
add rcx, r12
cvttsd2si rax, xmm0
add rax, rcx
jmp 0x1400111c1
mov ecx, reloc.WSOCK32.dll_recv
jmp 0x1400111d9
mov rcx, rdi
mov qword [rdi + 0x10], r15
call fcn.140005ac0
nop
jmp 0x140011213
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
lea r9, [rsp + 0x68]
mov r8d, 0x10000
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011241
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140011241
mov dword [rdi + 0x10], eax
mov dword [rdi + 0x14], r15d
jmp 0x140011222
mov r8d, 1
or rdx, 0xffffffffffffffff
mov rcx, rdi
call fcn.140005c30
nop
jmp 0x140011255