Function at 0x18002aa90
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 + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rsi, rdx
xor edi, edi
mov r14, qword [rdx]
test r14, r14
jne 0x18002aad9
xor al, al
jmp 0x18002ae00
lea rbx, [r14 + 0x60]
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.1800052b0
nop
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x50]
call fcn.1800052b0
nop
lea rdx, [rbx + 0x40]
lea rcx, [rbp - 0x30]
call fcn.1800052b0
nop
lea rdx, [rbx + 0x60]
lea rcx, [rbp - 0x10]
call fcn.1800052b0
nop
mov r15d, dword [rbx + 0x80]
mov dword [rbp + 0x10], r15d
mov rax, qword [rbx + 0x88]
mov qword [rbp + 0x18], rax
mov rax, qword [rbx + 0x90]
mov qword [rbp + 0x20], rax
mov rax, qword [rbx + 0x98]
mov qword [rbp + 0x28], rax
mov eax, dword [rbx + 0xa0]
mov dword [rbp + 0x30], eax
cmp qword [rbp - 0x20], 0
je 0x18002add4
cmp qword [rbp], 0
je 0x18002add4
test r15d, r15d
jne 0x18002ada6
mov rbx, qword [rsi + 8]
test rbx, rbx
jne 0x18002ac3d
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.1800284d0
nop
cmp qword [rsp + 0x70], rbx
je 0x18002ac21
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rdi
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 rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18002ac21
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
lea r8d, [r15 + 8]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove rcx, rdi
mov qword [rsp + 0x50], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.180003440
mov qword [rsi + 8], rbx
test rbx, rbx
je 0x18002adcd
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rbp - 0x78], rax
mov rbx, qword [rsi + 8]
cmp rax, rbx
jb 0x18002adcd
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x18002ac82
movups xmm1, xmmword [rax + 0x10]
psrldq xmm1, 4
movd r12d, xmm1
add r12d, 0x76c
jmp 0x18002ac85
mov r12d, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x18002ac9e
mov r15d, dword [rax + 0x10]
inc r15d
jmp 0x18002aca1
mov r15d, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x18002acc0
movups xmm1, xmmword [rax]
psrldq xmm1, 0xc
movd r14d, xmm1
jmp 0x18002acc3
mov r14d, edi
mov qword [rsp + 0x58], rbx
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x18002aced
movups xmm1, xmmword [rax + 0x10]
psrldq xmm1, 4
movd esi, xmm1
add esi, 0x76c
jmp 0x18002acef
mov esi, edi
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x18002ad06
mov ebx, dword [rax + 0x10]
inc ebx
jmp 0x18002ad08
mov ebx, edi
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x18002ad27
movups xmm1, xmmword [rax]
mov eax, dword [rax + 0x20]
psrldq xmm1, 0xc
movd edi, xmm1
cmp r12d, esi
jne 0x18002ad3a
cmp r15d, ebx
jne 0x18002ad3a
cmp r14d, edi
je 0x18002add4
lea rcx, [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x18002adcd
movups xmm1, xmmword [rax]
psrldq xmm1, 8
movd eax, xmm1
test eax, eax
js 0x18002adcd
lea rcx, [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
je 0x18002ad7d
movups xmm1, xmmword [rax]
psrldq xmm1, 8
movd eax, xmm1
cmp eax, 3
jg 0x18002adcd
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 0x18002add4
movzx ebx, r8b
jmp 0x18002add6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x18002add1
cmp ecx, eax
jbe 0x18002add1
sub ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
add edx, 2
cmp edx, r15d
jb 0x18002add4
mov bl, 1
jmp 0x18002add6
mov dword [rsi + 0x10], ecx
xor bl, bl
lea rcx, [rbp - 0x10]
call fcn.180003440
nop
lea rcx, [rbp - 0x30]
call fcn.180003440
nop
lea rcx, [rbp - 0x50]
call fcn.180003440
nop
lea rcx, [rbp - 0x70]
call fcn.180003440
movzx eax, bl
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1800bd270
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