Function at 0x444620
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov qword [rdx + 0x10], 0
mov al, 1
test r8, r8
je 0x444944
mov r15, r9
mov r14, r8
mov r12, rdx
mov rbx, rcx
mov rax, qword [0x010a5a08]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x44467b
lea rcx, [rsp + 0x48]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x40], rax
mov qword [0x010a5a08], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.kernel32.dll_CreateFileA]
cmp rax, 1
je 0x444995
mov r13, rax
cmp rax, 2
je 0x4449b9
test r15, r15
je 0x4446d6
cmp r13, 0xffffffffffffffff
jne 0x4446d6
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [r15], eax
cmp r13, 0xffffffffffffffff
je 0x4448ff
lea rdi, [rsp + 0x48]
mov rsi, qword [sym.imp.kernel32.dll_ReadFile]
xor ebx, ebx
nop
cmp rbx, r14
jae 0x44485a
mov rdx, qword [r12 + 0x10]
cmp rbx, rdx
jae 0x444710
mov rbp, rdx
jmp 0x4447ff
mov rsi, rdi
lea rbp, [rbx + rbx]
mov rax, qword [rsp + 0x40]
cmp rax, rbp
cmova rbp, rax
cmp rbp, r14
cmovae rbp, r14
cmp rdx, rbp
jae 0x4447f0
cmp qword [r12 + 8], rbp
jae 0x44474a
mov rcx, r12
mov rdx, rbp
call method.__sanitizer::InternalMmapVectorNoCtor_char_.Realloc_unsigned_long_long_
mov rdx, qword [r12 + 0x10]
mov r8, qword [r12]
lea rcx, [r8 + rdx]
mov rax, rbp
sub rax, rdx
mov edi, ecx
or edi, eax
test dil, 0xf
je 0x4447bf
test rax, rax
je 0x4447f0
not rdx
add rdx, rbp
mov edi, eax
and edi, 7
cmp rdx, 7
jb 0x4447a9
and rax, 0xfffffffffffffff8
mov byte [rcx], 0
mov byte [rcx + 1], 0
mov byte [rcx + 2], 0
mov byte [rcx + 3], 0
mov byte [rcx + 4], 0
mov byte [rcx + 5], 0
mov byte [rcx + 6], 0
mov byte [rcx + 7], 0
add rcx, 8
add rax, 0xfffffffffffffff8
jne 0x444780
test rdi, rdi
je 0x4447f0
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdi, rax
jne 0x4447b0
jmp 0x4447f0
and rax, 0xfffffffffffffff8
add rax, rcx
cmp rax, rcx
jbe 0x4447f0
add r8, rdx
add r8, 0x10
cmp rax, r8
cmova r8, rax
sub r8, rcx
add r8, 0xf
and r8, 0xfffffffffffffff0
xor edx, edx
call sym..rel
nop dword [rax + rax]
mov qword [r12 + 0x10], rbp
mov rdi, rsi
mov rsi, qword [sym.imp.kernel32.dll_ReadFile]
cmp rbp, rbx
jbe 0x444955
cmp rbp, r14
ja 0x444975
sub ebp, ebx
mov rdx, qword [r12]
add rdx, rbx
mov qword [rsp + 0x20], 0
mov rcx, r13
mov r8d, ebp
mov r9, rdi
call rsi
mov ebp, eax
test r15, r15
je 0x444842
test ebp, ebp
jne 0x444842
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [r15], eax
test ebp, ebp
je 0x444903
mov eax, dword [rsp + 0x48]
add rbx, rax
test rax, rax
jne 0x4446f0
mov rcx, r13
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rbp, qword [r12 + 0x10]
cmp rbp, rbx
jae 0x44493d
cmp qword [r12 + 8], rbx
jae 0x444888
mov rcx, r12
mov rdx, rbx
call method.__sanitizer::InternalMmapVectorNoCtor_char_.Realloc_unsigned_long_long_
mov rbp, qword [r12 + 0x10]
mov rdx, qword [r12]
lea rcx, [rdx + rbp]
mov rax, rbx
sub rax, rbp
mov edi, ecx
or edi, eax
test dil, 0xf
je 0x444910
test rax, rax
je 0x44493d
not rbp
add rbp, rbx
mov edx, eax
and edx, 7
cmp rbp, 7
jb 0x4448e9
and rax, 0xfffffffffffffff8
nop
mov byte [rcx], 0
mov byte [rcx + 1], 0
mov byte [rcx + 2], 0
mov byte [rcx + 3], 0
mov byte [rcx + 4], 0
mov byte [rcx + 5], 0
mov byte [rcx + 6], 0
mov byte [rcx + 7], 0
add rcx, 8
add rax, 0xfffffffffffffff8
jne 0x4448c0
test rdx, rdx
je 0x44493d
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdx, rax
jne 0x4448f0
jmp 0x44493d
xor eax, eax
jmp 0x444944
mov rcx, r13
call qword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x444944
and rax, 0xfffffffffffffff8
add rax, rcx
cmp rax, rcx
jbe 0x44493d
lea r8, [rdx + rbp]
add r8, 0x10
cmp rax, r8
cmova r8, rax
sub r8, rcx
add r8, 0xf
and r8, 0xfffffffffffffff0
xor edx, edx
call sym..rel
mov qword [r12 + 0x10], rbx
mov al, 1
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x20], rbp
lea rcx, str.gotsan.cpp
lea r8, str.__read_len_______buff__size____
mov edx, 0x2c3c
mov r9, rbx
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
mov qword [rsp + 0x20], r14
lea rcx, str.gotsan.cpp
lea r8, str.__buff__size_________max_len__
mov edx, 0x2c3d
mov r9, rbp
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__res_____fd_t_1_____fd_t_1_____fd_t__1_______0_
mov edx, 0x24e8
xor r9d, r9d
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__res_____fd_t_2_____fd_t_2_____fd_t__1_______0_
mov edx, 0x24e9
xor r9d, r9d
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
int3