Function at 0x1801abd20
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1804cd010]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, rdx
mov r14, qword [rdx]
test r14, r14
jne 0x1801abd67
xor al, al
jmp 0x1801ac115
lea rdx, [r14 + 0x60]
lea rcx, [rbp - 0x70]
call fcn.1801ac140
nop
cmp qword [rbp - 0x20], 0
je 0x1801ac0e9
cmp qword [rbp], 0
je 0x1801ac0e9
cmp dword [rbp + 0x10], 0
jne 0x1801ac0bb
mov rsi, qword [rdi + 8]
xor ebx, ebx
test rsi, rsi
jne 0x1801abf52
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1801a69e0
nop
cmp qword [rsp + 0x60], rbx
jne 0x1801abe0f
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1801abf32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801abf2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801abf2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1801abee8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x78]
mov r8d, 8
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x48]
test eax, eax
cmove rcx, rbx
mov qword [rsp + 0x48], rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1801abf32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801abf2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801abf2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1801abf32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801abf2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801abf2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], bx
mov qword [rdi + 8], rsi
test rsi, rsi
je 0x1801ac0e2
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rbp - 0x80], rax
mov rdi, qword [rdi + 8]
cmp rax, rdi
jb 0x1801ac0e2
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x1801abf97
movups xmm1, xmmword [rax + 0x10]
psrldq xmm1, 4
movd r12d, xmm1
add r12d, 0x76c
jmp 0x1801abf9a
mov r12d, ebx
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x1801abfb3
mov r15d, dword [rax + 0x10]
inc r15d
jmp 0x1801abfb6
mov r15d, ebx
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x1801abfd5
movups xmm1, xmmword [rax]
psrldq xmm1, 0xc
movd r14d, xmm1
jmp 0x1801abfd8
mov r14d, ebx
mov qword [rsp + 0x78], rdi
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x1801ac002
movups xmm1, xmmword [rax + 0x10]
psrldq xmm1, 4
movd esi, xmm1
add esi, 0x76c
jmp 0x1801ac004
mov esi, ebx
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x1801ac01b
mov edi, dword [rax + 0x10]
inc edi
jmp 0x1801ac01d
mov edi, ebx
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x1801ac03c
movups xmm1, xmmword [rax]
mov eax, dword [rax + 0x20]
psrldq xmm1, 0xc
movd ebx, xmm1
cmp r12d, esi
jne 0x1801ac04f
cmp r15d, edi
jne 0x1801ac04f
cmp r14d, ebx
je 0x1801ac0e9
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x1801ac0e2
movups xmm1, xmmword [rax]
psrldq xmm1, 8
movd eax, xmm1
test eax, eax
js 0x1801ac0e2
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x1801ac092
movups xmm1, xmmword [rax]
psrldq xmm1, 8
movd eax, xmm1
cmp eax, 3
jg 0x1801ac0e2
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x88888889
mul r8d
shr edx, 7
imul ecx, edx, 0xf0
sub r8d, ecx
cmp r8d, 1
jne 0x1801ac0e9
movzx ebx, r8b
jmp 0x1801ac0eb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [rdi + 0x10]
test eax, eax
je 0x1801ac0e6
cmp ecx, eax
jbe 0x1801ac0e6
sub ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
add edx, 2
cmp edx, dword [rbp + 0x10]
jb 0x1801ac0e9
mov bl, 1
jmp 0x1801ac0eb
mov dword [rdi + 0x10], ecx
xor bl, bl
lea rcx, [rbp - 0x10]
call fcn.180004e20
nop
lea rcx, [rbp - 0x30]
call fcn.180004e20
nop
lea rcx, [rbp - 0x50]
call fcn.180004e20
nop
lea rcx, [rbp - 0x70]
call fcn.180004e20
movzx eax, bl
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.180388400
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret