Function at 0x140030fc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, rdx
call fcn.140030f20
mov rax, qword [rbx + 0x20]
cmp byte [rax], 0x2f
jne 0x1400310d7
cmp rax, qword [rbx + 0x18]
jae 0x140030ff9
inc rax
mov qword [rbx + 0x20], rax
jmp 0x140031045
cmp byte [rbx + 0x38], 0
jne 0x140031045
mov rax, qword [rbx + 0x28]
mov edx, 1
mov r9, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
add qword [rbx + 0x30], rax
call fcn.140084c7c
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x20], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rbx + 0x18], rcx
cmp rax, qword [rbx + 0x10]
jae 0x140031045
mov byte [rdx + rax], 0
inc qword [rbx + 0x18]
mov byte [rbx + 0x38], 1
mov rcx, qword [rbx + 0x20]
movzx eax, byte [rcx]
cmp al, 0x2a
jne 0x1400311c9
cmp rcx, qword [rbx + 0x18]
jae 0x140031064
lea rax, [rcx + 1]
mov qword [rbx + 0x20], rax
jmp 0x1400310b0
cmp byte [rbx + 0x38], 0
jne 0x1400310b0
mov rax, qword [rbx + 0x28]
mov edx, 1
mov r9, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
add qword [rbx + 0x30], rax
call fcn.140084c7c
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x20], rdx
mov qword [rbx + 0x28], rax
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rbx + 0x18], rcx
cmp rax, qword [rbx + 0x10]
jae 0x1400310b0
mov byte [rdx + rax], 0
inc qword [rbx + 0x18]
mov byte [rbx + 0x38], 1
mov rcx, qword [rbx + 0x20]
movzx eax, byte [rcx]
test al, al
jne 0x1400310e7
mov rax, qword [rbx + 0x30]
sub rax, qword [rbx + 8]
add rax, rcx
mov dword [rsi + 0x30], shutdown
mov qword [rsi + 0x38], rax
cmp dword [rsi + 0x30], 0
je 0x1400310b0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp al, 0x2a
jne 0x140031054
cmp rcx, qword [rbx + 0x18]
jae 0x1400310ff
lea rax, [rcx + 1]
mov qword [rbx + 0x20], rax
jmp 0x14003114b
cmp byte [rbx + 0x38], 0
jne 0x14003114b
mov rax, qword [rbx + 0x28]
mov edx, 1
mov r9, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
add qword [rbx + 0x30], rax
call fcn.140084c7c
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x20], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rbx + 0x18], rcx
cmp rax, qword [rbx + 0x10]
jae 0x14003114b
mov byte [rdx + rax], 0
inc qword [rbx + 0x18]
mov byte [rbx + 0x38], 1
mov rax, qword [rbx + 0x20]
cmp byte [rax], 0x2f
jne 0x1400310b0
cmp rax, qword [rbx + 0x18]
jae 0x14003116d
inc rax
mov rcx, rbx
mov qword [rbx + 0x20], rax
jmp 0x140030fd8
cmp byte [rbx + 0x38], 0
jne 0x140031279
mov rax, qword [rbx + 0x28]
mov edx, 1
mov r9, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
add qword [rbx + 0x30], rax
call fcn.140084c7c
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x20], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rbx + 0x18], rcx
cmp rax, qword [rbx + 0x10]
jae 0x140031279
mov byte [rdx + rax], 0
mov rcx, rbx
inc qword [rbx + 0x18]
mov byte [rbx + 0x38], 1
jmp 0x140030fd8
cmp al, 0x2f
jne 0x140031259
mov rcx, rbx
call fcn.140031c80
nop dword [rax]
mov rax, qword [rbx + 0x20]
movzx edi, byte [rax]
test dil, dil
je 0x140031279
cmp rax, qword [rbx + 0x18]
jae 0x1400311ff
inc rax
mov qword [rbx + 0x20], rax
jmp 0x14003124b
cmp byte [rbx + 0x38], 0
jne 0x14003124b
mov rax, qword [rbx + 0x28]
mov edx, 1
mov r9, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
add qword [rbx + 0x30], rax
call fcn.140084c7c
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x20], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rbx + 0x18], rcx
cmp rax, qword [rbx + 0x10]
jae 0x14003124b
mov byte [rdx + rax], 0
inc qword [rbx + 0x18]
mov byte [rbx + 0x38], 1
cmp dil, 0xa
jne 0x1400311e0
mov rcx, rbx
jmp 0x140030fd8
mov rax, qword [rbx + 0x30]
sub rax, qword [rbx + 8]
add rax, rcx
mov dword [rsi + 0x30], shutdown
mov qword [rsi + 0x38], rax
cmp dword [rsi + 0x30], 0
jne 0x1400310d7
mov rcx, rbx
jmp 0x140030fd8