Function at 0x140001250
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
lea rcx, str.global_pg_control
xor r8d, r8d
mov edx, 0x8000
call qword [sym.imp.MSVCR120.dll__open]
mov edi, eax
test eax, eax
jns 0x1400012ff
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str._s:_could_not_open_file___s__for_reading:__s_n
mov rbx, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140010358]
lea r9, str.global_pg_control
lea rcx, [rax + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140006620
call qword [sym.imp.MSVCR120.dll__errno]
cmp dword [rax], 2
jne 0x1400012f3
lea rcx, str.If_you_are_sure_the_data_directory_path_is_correct__execute_n__touch__s_nand_try_again._n
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
lea r8, str.global_pg_control
lea rcx, [rax + 0x60]
mov rdx, rbx
call fcn.140006620
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov ecx, 0x2000
mov qword [rsp + 0x40], rsi
call fcn.140004c50
mov r8d, 0x2000
mov ecx, edi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.MSVCR120.dll__read]
movsxd rsi, eax
test eax, eax
jns 0x14000137b
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str._s:_could_not_read_file___s_:__s_n
mov rbx, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140010358]
lea r9, str.global_pg_control
lea rcx, [rax + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140006620
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov ecx, edi
call qword [sym.imp.MSVCR120.dll__close]
cmp rsi, 0x108
jb 0x1400014d5
cmp dword [rbx + 8], 0x3c0
jne 0x1400014d5
mov r8d, 0x100
mov rdx, rbx
or ecx, 0xffffffff
call qword [0x140010020]
not eax
cmp eax, dword [rbx + 0x100]
jne 0x14000142f
lea rcx, [0x140010250]
mov eax, 2
movups xmm0, xmmword [rbx]
lea rcx, [rcx + 0x80]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
dec rax
jne 0x1400013c5
mov rax, qword [rbx]
mov rsi, qword [rsp + 0x40]
mov qword [rcx], rax
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rcx, str._s:_pg_control_exists_but_has_invalid_CRC__proceed_with_caution_n
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140010358]
lea rcx, [rax + 0x60]
mov rdx, rdi
call fcn.140006620
lea rcx, [0x140010250]
mov eax, 2
movups xmm0, xmmword [rbx]
lea rcx, [rcx + 0x80]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
dec rax
jne 0x140001464
mov rax, qword [rbx]
mov rsi, qword [rsp + 0x40]
mov byte [0x140010220], 1
mov qword [rcx], rax
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rcx, str._s:_pg_control_exists_but_is_broken_or_wrong_version__ignoring_it_n
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rbx, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140010358]
add rax, 0x60
mov rdx, rbx
mov rcx, rax
call fcn.140006620
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret