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

Disassembly:
push rbp
push r15
push rdi
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
mov eax, 0xe8000010
invalid
invalid
add dword [rax], eax
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
sub dword [rbp + 0x1020], esi
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0xfe8], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
lea ebp, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.1400583f0
xorps xmm6, xmm6
invalid
lea r14, [rbp + 0xffc]
lea rbx, [0x140026ef0]
lea r15, [rbp + 0xfb0]
mov rax, qword [sym.imp.kernel32.dll_ReadFileEx]
lea rsi, [0x1400651b8]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0xff0], r12
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], rbx
mov rcx, r12
mov rdx, r13
mov r8d, 0x1000
mov r9, r15
call rax
test eax, eax
je case.0x140024106.140
pop rsi
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je case.0x140026942.55
movsxd rax, dword [rbp + 0x1000]
test rax, rax
je case.0x140024094.152
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 1
mov ecx, eax
and ecx, 3
loope case.0x140024094.149
movsxd rcx, dword [rsi + rcx*4]
add rcx, rsi
jmp rcx
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 1
mov ecx, eax
and ecx, 3
movsxd rcx, dword [rsi + rcx*4]
add rcx, rsi
jmp rcx
mov eax, dword [rbp + 0x1004]
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 0
jmp 0x140030a34
mov rax, qword [rbp + 0x1008]
mov qword [rbp + 0xfd0], rax
mov rax, qword [rbp + 0x1010]
mov qword [rbp + 0xfd8], rax
cmp qword [rbp + 0xfd0], 0
jne 0x140030ccb
test dword [rbp + 2], ebp
add byte [rax], al
mov r12, qword [rbp + 0xfd8]
test r12, r12
je 0x140030c97
cmp r12, 0x1000
ja 0x140030cfb
mov rsi, r13
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
sldt word [rax]
add byte [rax], al
add byte [rax], al
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0xfe8]
mov r9, r15
call qword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x140030c6c
invalid
mov eax, dword [rcx]
add byte [rax], al
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140030af0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
test eax, eax
jne 0x140030c71
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je case.0x140026942.68
invalid
jbe 0x140030a90
jmp 0x140030ce7
mov r12, qword [rbp + 0xff0]
mov r13, rsi
mov rax, qword [sym.imp.kernel32.dll_ReadFileEx]
lea rsi, [0x1400651b8]
jmp case.0x1400238d4.193
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 1
lea rcx, [rbp + 0x1010]
call fcn.14001a250
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0xff0]
call rsi
mov rcx, qword [rbp + 0xfe8]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfd8]
call fcn.14001a250
jmp 0x140030c97
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140059290
jmp 0x140030d0f
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140059020
ud2