Function at 0x140148d10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x298
mov eax, dword [0x1402a4108]
test eax, eax
je 0x140148fe1
mov rcx, qword [0x1402a4128]
test rcx, rcx
je 0x140148ecf
mov edx, 0x8000
call sub.msvcrt.dll__open
cmp eax, 0xffffffff
mov ebx, eax
je 0x140148e90
lea rbp, [rsp + 0x30]
mov ecx, eax
mov rdx, rbp
call qword [sym.imp.msvcrt.dll__fstat64]
cmp eax, 0xffffffff
mov esi, eax
je 0x140148ee0
test esi, esi
movzx eax, word [rsp + 0x36]
mov rdx, qword [rsp + 0x48]
jne 0x140148ee0
and ax, 0xf000
cmp ax, 0x8000
jne 0x140148f30
test edx, edx
je 0x140148fa0
cmp edx, 0x258
mov rdi, qword [sym.imp.msvcrt.dll__errno]
je 0x140148dce
lea rcx, str.warning:_invalid_size_of_random_seed_file___not_used_n
call fcn.1400e9f90
mov rcx, rax
call fcn.1400ea290
mov ecx, ebx
call fcn.14016b378
jmp 0x140148ed1
call rdi
cmp dword [rax], 4
mov rsi, rdi
jne 0x140148f70
mov r8d, 0x258
mov rdx, rbp
mov ecx, ebx
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
je 0x140148dc0
cmp eax, 0x258
jne 0x140148f63
mov ecx, ebx
lea rbx, [rsp + 0x28]
mov esi, 1
call fcn.14016b378
xor r8d, r8d
mov rcx, rbp
mov edx, 0x258
call fcn.140148c00
call sub.msvcrt.dll__getpid
xor r8d, r8d
cdqe
mov edx, 8
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.140148c00
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
xor r8d, r8d
mov rcx, rbx
mov edx, 8
mov qword [rsp + 0x28], rax
call fcn.140148c00
call sub.msvcrt.dll_clock
xor r8d, r8d
mov rcx, rbx
mov edx, 4
mov dword [rsp + 0x28], eax
call fcn.140148c00
xor r8d, r8d
mov edx, 0x10
xor ecx, ecx
call fcn.140148890
mov eax, esi
mov dword [0x1402a4124], 1
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 2
je 0x140148fd0
call rbx
mov ecx, dword [rax]
call fcn.14016b498
mov rbx, qword [0x1402a4128]
lea rcx, str.cant_open___s:__s_n
mov rsi, rax
call fcn.1400e9f90
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ea290
xor esi, esi
mov eax, esi
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call fcn.14016b498
mov rsi, qword [0x1402a4128]
lea rcx, str.cant_stat___s:__s_n
mov rdi, rax
call fcn.1400e9f90
mov rdx, rsi
mov r8, rdi
mov rcx, rax
call fcn.1400ea290
xor esi, esi
mov ecx, ebx
call fcn.14016b378
mov eax, esi
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdi, qword [0x1402a4128]
lea rcx, str.__s_is_not_a_regular_file___ignored_n
call fcn.1400e9f90
mov rdx, rdi
mov rcx, rax
call fcn.1400ea290
mov ecx, ebx
call fcn.14016b378
mov eax, esi
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rsi, qword [sym.imp.msvcrt.dll__errno]
nop word [rax + rax]
call rsi
mov ecx, dword [rax]
call fcn.14016b498
mov rbx, qword [0x1402a4128]
lea rcx, str.cant_read___s:__s_n
mov rsi, rax
call fcn.1400e9f90
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ea320
nop dword [rax]
lea rcx, str.note:_random_seed_file_is_empty_n
call fcn.1400e9f90
mov rcx, rax
call fcn.1400ea290
mov ecx, ebx
call fcn.14016b378
mov dword [0x1402a4124], 1
jmp 0x140148ed1
mov dword [0x1402a4124], 1
xor esi, esi
jmp 0x140148ed1
lea r9, str.read_seed_file
lea rdx, str.random_csprng.c
lea rcx, str.pool_is_locked
mov r8d, 0x2df
call fcn.1400ea260
nop
nop dword [rax]
nop word cs:[rax + rax]