Function at 0x1400018c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push r12
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r10d, r10d
mov qword [rsp + 0x48], rcx
add r9, 0xfffffffffffffff6
mov dword [rsp + 0x50], r10d
mov r12, rdx
mov rbx, rcx
cmp r9, 0x46
ja case.0x14000191e.21
lea rcx, [0x140000000]
movzx eax, byte [rcx + r9 + 0x1d38]
mov r9d, 0x500000
mov r8d, dword [rcx + rax*4 + 0x1d08]
add r8, rcx
jmp r8
mov rcx, qword [rbx + 0x10]
cmp rcx, r9
jg 0x14000193a
mov r15, rcx
mov dword [rsp + 0x30], 1
jmp 0x140001b47
cmp rcx, 0x1f400000
jg 0x140001972
movabs rax, 0xa3d70a3d70a3d70b
mov dword [rsp + 0x30], 8
imul rcx
lea r15, [rcx + rdx]
sar r15, 6
mov rax, r15
shr rax, 0x3f
add r15, rax
add r15, r15
jmp 0x140001b47
mov r15d, 0x3200000
mov dword [rsp + 0x30], 5
jmp 0x140001b47
mov rcx, qword [rbx + 0x10]
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea r15, [rdx + rdx*4]
jmp 0x140001b3f
mov rcx, qword [rbx + 0x10]
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul r15, rdx, 7
jmp 0x140001b3f
mov rcx, qword [rbx + 0x10]
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea r15, [rdx + rdx*8]
jmp 0x140001b3f
mov rcx, qword [rbx + 0x10]
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea r15, [rdx + rdx*4]
add r15, r15
jmp 0x140001b3f
mov rcx, qword [rbx + 0x10]
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea r15, [rdx + rdx*2]
shl r15, 2
jmp 0x140001b3f
mov rcx, qword [rbx + 0x10]
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul r15, rdx, 0xe
jmp 0x140001b3f
movabs rax, 0xa3d70a3d70a3d70b
mov dword [rsp + 0x30], 5
imul qword [rbx + 0x10]
add rdx, qword [rbx + 0x10]
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea r15, [rdx + rdx*4]
add r15, r15
mov rax, r15
jmp 0x140001b59
mov rcx, qword [rbx + 0x10]
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea r15, [rdx + rdx*4]
shl r15, 2
jmp 0x140001b3f
mov rcx, qword [rbx + 0x10]
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul r15, rdx, 0x17
jmp 0x140001b3f
mov rcx, qword [rbx + 0x10]
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul r15, rdx, 0x1b
mov dword [rsp + 0x30], 3
lea rax, [r15 + r15*2]
sub rcx, rax
mov rax, rcx
cqo
sub rax, rdx
sar rax, 1
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rdi
mov edi, r10d
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], r10d
mov r13, r10
test edi, edi
je 0x140001bb0
mov rcx, qword [rbx + 8]
mov r9d, 1
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140001cc7
xor r10d, r10d
mov r9d, 0x500000
test r15, r15
jle 0x140001ca6
nop dword [rax]
mov rcx, qword [rbx + 8]
mov r8, r15
sub r8, r13
mov qword [rsp + 0x20], r10
cmp r8, r9
mov rdx, r12
cmovg r8d, r9d
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001ca2
mov ebp, dword [rsp + 0x50]
test ebp, ebp
je 0x140001ca2
lea rcx, [rbx + 0x4c]
mov r9d, ebp
mov r8, r12
mov rdx, r12
add r13, rbp
call section..text
mov edx, dword [rsp + 0x50]
mov r9d, 1
mov rcx, qword [rbx + 8]
neg rdx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140001ca2
mov r14, qword [rbx + 8]
xor r10d, r10d
mov dword [rsp + 0x54], r10d
mov ebx, r10d
mov edi, ebp
mov esi, r10d
test ebp, ebp
je 0x140001c87
nop dword [rax]
nop word [rax + rax]
mov edx, esi
lea r9, [rsp + 0x54]
add rdx, r12
mov qword [rsp + 0x20], r10
mov r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001c9d
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140001c9d
add esi, eax
add ebx, eax
sub edi, eax
mov r10d, 0
cmp ebx, ebp
jne 0x140001c50
mov rbx, qword [rsp + 0x48]
mov r9d, 0x500000
cmp r13, r15
jl 0x140001bc0
jmp 0x140001ca2
mov rbx, qword [rsp + 0x48]
mov edi, dword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
inc edi
mov r10d, 0
mov dword [rsp + 0x40], edi
mov r9d, 0x500000
cmp edi, dword [rsp + 0x30]
jl 0x140001b82
mov r14, qword [rsp + 0x60]
mov eax, 1
mov r13, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0xb0]
jmp 0x140001cec
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006250
add rsp, 0x80
pop r15
pop r12
pop rbx
ret