Function at 0x140273c70
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
vpxor xmm0, xmm0, xmm0
mov rbx, rcx
mov rsi, rdx
vmovdqu xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov dword [rcx + 0x18], 0
test rdx, rdx
je 0x140273ef0
mov rcx, rdx
call sym.strlen
test rax, rax
je 0x140273ef0
lea rcx, [rax + 1]
mov edx, 1
mov qword [rsp + 0x28], rax
call sym.calloc
test rax, rax
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov qword [rbx], rax
je 0x140273f94
mov rdx, rsi
lea rdi, [0x140373514]
call sym.memcpy
mov rdx, rdi
mov rcx, rax
call sym.fopen_utf8
mov rsi, rax
test rax, rax
je 0x140273de0
xor edx, edx
mov r8d, 2
mov rcx, rsi
call sym.fseek
mov rcx, rsi
call sym.ftell
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov edi, eax
call sym.fseek
test edi, edi
js 0x140273e90
movsxd rbp, edi
mov rcx, rbp
call sym.malloc_hugepages
mov rcx, rax
mov qword [rbx + 8], rax
test rax, rax
je 0x140273eb0
mov rdx, qword [0x140386d20]
cmp byte [rdx], 0
je 0x140273db0
mov r9, rsi
mov r8d, 1
mov rdx, rbp
call sym.fread
test rax, rax
je 0x140273f26
mov rcx, rsi
call sym.fclose
lea eax, [rdi - 0x11]
sub edi, 0x20
mov r8, qword [rbx]
cmovns eax, edi
mov qword [rbx + 0x10], rbp
lea rdx, str.Using_Verthash_data_file__s
sar eax, 4
mov ecx, 3
inc eax
mov dword [rbx + 0x18], eax
call sym.applog
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 4
lea rdx, str.Verthash_data_is_using_huge_pages
call sym.applog
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x140273d52
mov rcx, rsi
call sym.fclose
mov eax, 2
jmp 0x140273d9f
mov rax, qword [0x140386c70]
cmp qword [rax], 0
jne 0x140273f10
mov rax, qword [0x140386d90]
cmp byte [rax], 0
je 0x140273f44
lea rdx, str.Creating_default_verthash.dat_in_current_directory__this_will_take_several_minutes
mov ecx, 3
call sym.applog
mov ecx, 0x20
mov rsi, qword [rbx]
call sym.malloc
mov r8, rax
test rax, rax
je 0x140273faa
mov edx, 0x20
lea rcx, str.Verthash_Proof_of_Space_Datafile
mov r9d, 0x20
mov qword [rsp + 0x28], rax
call sym.sha3
mov rdx, rsi
mov ecx, 0x11
mov r8, qword [rsp + 0x28]
call sym.NewGraph
test rax, rax
je 0x140273f7e
mov rcx, qword [rbx]
mov rdx, rdi
call sym.fopen_utf8
mov rsi, rax
test rax, rax
je 0x140273f68
lea rdx, str.Verthash_data_file_created_successfully
mov ecx, 3
call sym.applog
jmp 0x140273cfc
mov rcx, rsi
call sym.fclose
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test edi, edi
je 0x140273ee0
lea rcx, [rbp + 0x40]
call sym.malloc
test rax, rax
je 0x140273ee0
lea rcx, [rax + 0x40]
and rcx, 0xffffffffffffffc0
mov qword [rcx - 8], rax
mov qword [rbx + 8], rcx
jmp 0x140273d52
mov qword [rbx + 8], 0
jmp 0x140273dca
lea rdx, str.Invalid_file_specification
mov ecx, 1
call sym.applog
or eax, 0xffffffff
jmp 0x140273d9f
mov r8, qword [rbx]
lea rdx, str.Verthash_data_file_not_found_or_invalid:__s
mov ecx, 1
call sym.applog
jmp 0x140273f01
mov r8, qword [rbx]
lea rdx, str.File_system_error_reading__s
mov ecx, 1
call sym.applog
mov rcx, rsi
call sym.fclose
jmp 0x140273f01
lea rdx, str.No_Verthash_data_file_specified_and_default_not_found
mov ecx, 1
call sym.applog
lea rdx, str.Add___verify_to_create_default_verthash.dat
mov ecx, 3
call sym.applog
jmp 0x140273f01
mov r8, qword [rbx]
lea rdx, str.File_system_error_opening__s
mov ecx, 1
call sym.applog
jmp 0x140273f01
lea rdx, str.Verthash_file_creation_failed
mov ecx, 1
call sym.applog
jmp 0x140273f01
lea rdx, str.Failed_to_allocate_memory_for_Verthash_data
mov ecx, 1
call sym.applog
jmp 0x140273f01
lea rdx, str.Verthash_data_memory_allocation_failed
mov ecx, 1
call sym.applog
jmp 0x140273f01