Function at 0x140001a30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140021bb8]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rax, qword [0x140026618]
xor r14d, r14d
mov r13d, edx
mov r12, rcx
mov rbx, r9
mov byte [rsp + 0x40], r8b
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rax
mov r15d, r14d
lea esi, [r13 - 1]
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], 0x64
mov word [rsp + 0x70], 0x100
mov dword [rsp + 0x74], 0x40
mov byte [rsp + 0x78], r14b
mov dword [rsp + 0x6c], 1
test esi, esi
je 0x140001c4a
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r14
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x140001cb3
cmp dword [rsp + 0x44], 1
jne 0x140001c2d
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x140001c37
test al, al
je 0x140001b46
cmp al, 0xd
je 0x140001b46
mov ebx, dword [rsp + 0x6c]
inc r15d
mov byte [rsp + 0x38], al
cmp ebx, 2
jb 0x140001b18
lea r14, [rbx - 1]
or eax, 0xffffffff
sub eax, ebx
cmp eax, 2
jb 0x140001c2a
add ebx, 2
cmp ebx, dword [rsp + 0x68]
jbe 0x140001b71
cmp byte [rsp + 0x71], 0
jne 0x140001b59
mov edi, 0x8007000e
xor r14d, r14d
test edi, edi
js 0x140001c2d
cmp r15d, esi
jae 0x140001c45
mov rax, qword [rsp + 0x50]
jmp 0x140001abf
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140003bf8
mov edi, eax
test eax, eax
je 0x140001b71
mov ebx, dword [rsp + 0x6c]
jmp 0x140001b77
mov dword [rsp + 0x6c], ebx
xor edi, edi
test edi, edi
jne 0x140001b3b
lea eax, [rdi + 2]
mov edi, ebx
cmp ebx, eax
cmovb eax, ebx
sub edi, eax
cmp edi, dword [rsp + 0x68]
jbe 0x140001baa
cmp byte [rsp + 0x71], 0
je 0x140001bb0
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140003bf8
test eax, eax
je 0x140001baa
mov ebx, dword [rsp + 0x6c]
jmp 0x140001bb0
mov ebx, edi
mov dword [rsp + 0x6c], ebx
xor sil, sil
cmp ebx, 1
jb 0x140001bc1
dec ebx
mov sil, 1
mov dword [rsp + 0x6c], ebx
lea rax, [rsp + 0x38]
mov r9d, 1
mov edx, r14d
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.140003b40
xor r14d, r14d
mov edi, eax
test eax, eax
je 0x140001bfb
cmp eax, 0x80070057
je 0x140001bf6
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_DebugBreak]
jmp 0x140001c21
test sil, sil
je 0x140001c2d
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x6c]
sub eax, ecx
cmp eax, 1
jae 0x140001c14
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_DebugBreak]
mov ecx, dword [rsp + 0x6c]
mov rax, qword [rsp + 0x60]
mov byte [rcx + rax], r14b
inc dword [rsp + 0x6c]
lea esi, [r13 - 1]
jmp 0x140001b3e
xor r14d, r14d
mov ebx, 0x8007001e
jmp 0x140001cfc
cmp byte [rsp + 0x40], r14b
je 0x140001c45
lock dec dword [0x140022600]
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
lea rax, [rbp - 8]
or r8d, 0xffffffff
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x18], 0xc8
mov word [rbp - 0x10], 0x100
mov dword [rbp - 0xc], 0x40
mov word [rbp - 8], r14w
mov dword [rbp - 0x14], 2
call fcn.1400038bc
test rax, rax
je 0x140001cda
mov eax, dword [rbp - 0x18]
shr eax, 1
cmp eax, r13d
ja 0x140001cda
mov r8, qword [rbp - 0x20]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov eax, r15d
mov word [r12 + rax*2], r14w
mov dword [rbx], r15d
mov ebx, r14d
jmp 0x140001cdf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x140001cc4
mov ebx, 0x80004005
jmp 0x140001cfc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140001cfc
mov ebx, 0x8007001e
cmp byte [rbp - 0x10], r14b
je 0x140001cf3
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.msvcrt.dll_free]
mov byte [rbp - 0x10], r14b
and qword [rbp - 0x18], 0
mov qword [rbp - 0x20], r14
cmp byte [rsp + 0x70], r14b
je 0x140001d0e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14000e6b0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret