Function at 0x14001bb70
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 0x14004fee4
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 0x14004ff0a
mov rbx, r15
mov eax, dword [rdi + 0x10]
cmp dword [rdi + 0x14], eax
je 0x14001bd11
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 0x14001bbc2
add qword [rdi + 0x18], rbx
test rbx, rbx
je 0x14001bd4e
movzx ebp, byte [rsp + 0x60]
mov r14b, 1
cmp bpl, 0xd
je 0x14001bc52
cmp bpl, 0xa
je 0x14001bc9e
mov rcx, qword [rsi + 0x18]
mov eax, dword [rcx]
cmp eax, 1
jg 0x14004ff1f
mov rax, qword [rsi + 8]
add rax, 2
cmp qword [rsi + 0x10], rax
jb 0x14001bcb7
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 0x14001bbb5
cmp dword [rdi + 0x10], r15d
je 0x140050012
mov rbx, r15
mov eax, dword [rdi + 0x10]
cmp dword [rdi + 0x14], eax
je 0x140050027
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 0x14001bc5f
add qword [rdi + 0x18], rbx
test rbx, rbx
je 0x14001bc9e
cmp byte [rsp + 0x60], 0xa
jne 0x140050064
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
cmp rax, 0x41c2
jae 0x14004ff5f
add rax, rax
mov qword [rsi + 0x10], rax
mov rcx, rax
test rax, rax
je 0x140050008
add rcx, 0xf
and rcx, 0xfffffffffffffff0
mov qword [rsi + 0x10], rcx
int3
mov qword [rsi], rbx
jmp 0x14001bc33
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 0x14001bbed
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14001bbed
mov dword [rdi + 0x10], eax
mov dword [rdi + 0x14], r15d
jmp 0x14001bbce
test r14b, r14b
jne 0x14001bc9e
xor al, al
jmp 0x14001bca0
dec eax
mov dword [rcx], eax
mov rcx, rdx
call fcn.14001c5cc
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsi + reloc.WSOCK32.dll_recv], 0x10
call fcn.14002698c
mov qword [rsi], rax
jmp 0x14001bb96
mov rcx, rdi
mov qword [rdi + 0x10], r15
call fcn.14001c530
mov qword [rdi + 0x18], rax
jmp 0x14001bbbf
dec eax
mov dword [rcx], eax
mov rcx, rsi
call fcn.14001c5cc
mov rdx, qword [rsi + 8]
add rdx, 2
call fcn.14001c5b8
mov rcx, rax
mov qword [rsi + 0x10], rax
call fcn.14002698c
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
inc r8
mov rcx, rax
mov rbx, rax
call fcn.140026a50
nop
jmp 0x14001bd09
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
cmp rax, 0x2000000
jae 0x14004ffb6
test rax, rax
jns 0x14004ff7c
addsd xmm0, qword [0x1400bb2d0]
mulsd xmm0, qword [0x1400cdbf8]
jmp 0x14004ff96
addsd xmm0, qword [0x1400bb2d0]
mulsd xmm0, qword [0x1400cdbf0]
xor ecx, ecx
comisd xmm0, xmmword [0x1400cdc00]
jb 0x14004fffb
subsd xmm0, qword [0x1400cdc00]
comisd xmm0, xmmword [0x1400cdc00]
jb 0x14004fff8
jmp 0x14004fffb
cmp rax, 0x8000000
jae 0x14004ffc5
test rax, rax
jns 0x14004ff8e
jmp 0x14004ff86
test rax, rax
jns 0x14004ffd2
addsd xmm0, qword [0x1400bb2d0]
mulsd xmm0, qword [0x1400cdbe8]
xor ecx, ecx
comisd xmm0, xmmword [0x1400cdc00]
jb 0x14004fffb
subsd xmm0, qword [0x1400cdc00]
comisd xmm0, xmmword [0x1400cdc00]
jae 0x14004fffb
add rcx, r12
cvttsd2si rax, xmm0
add rax, rcx
jmp 0x14001bcc6
mov ecx, reloc.WSOCK32.dll_recv
jmp 0x14001bcde
mov rcx, rdi
mov qword [rdi + 0x10], r15
call fcn.14001c530
mov qword [rdi + 0x18], rax
jmp 0x14001bc5c
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 0x14001bc8a
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14001bc8a
mov dword [rdi + 0x10], eax
mov dword [rdi + 0x14], r15d
jmp 0x14001bc6b
mov r8d, 1
or rdx, 0xffffffffffffffff
mov rcx, rdi
call fcn.14001c380
nop
jmp 0x14001bc9e