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 0x14004fdc4
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 0x14004fdea
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 0x14004fdff
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 0x14004fef2
mov rbx, r15
mov eax, dword [rdi + 0x10]
cmp dword [rdi + 0x14], eax
je 0x14004ff07
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 0x14004ff44
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 0x14004fe3f
add rax, rax
mov qword [rsi + 0x10], rax
mov rcx, rax
test rax, rax
je 0x14004fee8
add rcx, 0xf
and rcx, 0xfffffffffffffff0
mov qword [rsi + 0x10], rcx
call fcn.14002686c
mov rdx, qword [rsi]
mov rbx, rax
test rdx, rdx
je 0x14001bd09
mov r8, qword [rsi + 8]
mov rcx, rax
inc r8
call fcn.140026930
mov rcx, qword [rsi]
call fcn.140026914
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.14002686c
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.14002686c
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
inc r8
mov rcx, rax
mov rbx, rax
call fcn.140026930
nop
jmp 0x14001bd09
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
cmp rax, 0x2000000
jae 0x14004fe96
test rax, rax
jns 0x14004fe5c
addsd xmm0, qword [0x1400baff0]
mulsd xmm0, qword [0x1400cc118]
jmp 0x14004fe76
addsd xmm0, qword [0x1400baff0]
mulsd xmm0, qword [0x1400cc110]
xor ecx, ecx
comisd xmm0, xmmword [0x1400cc120]
jb 0x14004fedb
subsd xmm0, qword [0x1400cc120]
comisd xmm0, xmmword [0x1400cc120]
jb 0x14004fed8
jmp 0x14004fedb
cmp rax, 0x8000000
jae 0x14004fea5
test rax, rax
jns 0x14004fe6e
jmp 0x14004fe66
test rax, rax
jns 0x14004feb2
addsd xmm0, qword [0x1400baff0]
mulsd xmm0, qword [0x1400cc108]
xor ecx, ecx
comisd xmm0, xmmword [0x1400cc120]
jb 0x14004fedb
subsd xmm0, qword [0x1400cc120]
comisd xmm0, xmmword [0x1400cc120]
jae 0x14004fedb
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