Function at 0x1400185b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x288
lea rbp, [rsp + 0x30]
mov rdi, rsp
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2a8]
mov rax, qword [0x14003ad50]
xor rax, rbp
mov qword [rbp + 0x240], rax
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0x108], 0
mov dword [rbp + 0x124], 0
mov rax, qword [rbp + 0x288]
mov qword [rbp + 0x238], rax
cmp qword [rbp + 0x238], 0x14
je 0x140018668
cmp qword [rbp + 0x238], 0x32
je 0x1400186bc
jmp 0x1400186f6
mov rax, qword [rbp + 0x270]
mov rax, qword [rax + 0x18]
cqo
mov ecx, 0x64
idiv rcx
imul rax, rax, 7
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0x124], 3
imul rax, qword [rbp + 0xe8], 3
mov rcx, qword [rbp + 0x270]
mov rcx, qword [rcx + 0x18]
sub rcx, rax
mov rax, rcx
cqo
sub rax, rdx
sar rax, 1
mov qword [rbp + 0x108], rax
jmp 0x1400186fd
mov rax, qword [rbp + 0x270]
mov rax, qword [rax + 0x18]
cqo
mov ecx, 0x64
idiv rcx
imul rax, rax, 0xa
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0x124], 5
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x108], rax
jmp 0x1400186fd
xor eax, eax
jmp 0x1400188c8
mov dword [rbp + 0x144], 0
jmp 0x140018717
mov eax, dword [rbp + 0x144]
inc eax
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 0x124]
cmp dword [rbp + 0x144], eax
jge 0x1400188c3
mov qword [rbp + 0x88], 0
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0xa8], rax
cmp dword [rbp + 0x144], 0
je 0x140018783
mov rax, qword [rbp + 0x108]
mov qword [rbp + 0xc8], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140018783
jmp 0x1400188c3
mov rax, qword [rbp + 0xa8]
cmp qword [rbp + 0x88], rax
jge 0x1400188be
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xa8]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x168], rax
cmp qword [rbp + 0x168], 0x500000
jle 0x1400187cb
mov dword [rbp + 0x234], 0x500000
jmp 0x1400187d7
mov eax, dword [rbp + 0x168]
mov dword [rbp + 0x234], eax
mov eax, dword [rbp + 0x234]
mov dword [rbp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x278]
mov rax, qword [rbp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140018818
cmp dword [rbp + 0x24], 0
jne 0x14001881d
jmp 0x1400188be
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x270]
add rax, 0x4c
mov r9d, dword [rbp + 0x24]
mov r8, qword [rbp + 0x278]
mov rdx, qword [rbp + 0x278]
mov rcx, rax
call fcn.140011451
mov eax, dword [rbp + 0x24]
neg rax
mov qword [rbp + 0xc8], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0x270]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140018893
jmp 0x1400188be
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x278]
mov rax, qword [rbp + 0x270]
mov rcx, qword [rax + 8]
call fcn.140018d60
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400188b9
jmp 0x1400188be
jmp 0x140018783
jmp 0x140018709
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14001141f
mov rax, rdi
mov rcx, qword [rbp + 0x240]
xor rcx, rbp
call fcn.140011974
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret