Function at 0x140003a60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rax, qword [0x1403338e8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor ebp, ebp
mov dword [rsp + 0x38], ecx
xor r14b, r14b
mov qword [rsp + 0x68], rbp
mov edi, ebp
mov qword [rsp + 0x70], rbp
mov r15d, ebp
mov byte [rsp + 0x30], r14b
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdx
call fcn.140005700
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
mov qword [0x140335f30], rcx
call fcn.1400065a0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140001970
test al, al
je 0x140003aec
lea esi, [rbp + 1]
jmp 0x140004612
cmp byte [0x1403339ee], dil
je 0x140003b22
cmp byte [0x1403339ec], dil
je 0x140003b58
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:___strict_check_option_cannot_be_used_together_with___no_check_option._n
call fcn.140003850
mov esi, 1
jmp 0x140004612
cmp byte [0x1403339ec], dil
je 0x140003b58
cmp byte [0x140333ac2], dil
jne 0x140003b58
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:___no_check_must_be_associated_with___write_option._n
call fcn.140003850
mov esi, 1
jmp 0x140004612
cmp byte [0x140333ac3], dil
je 0x140003b7f
mov rcx, qword [0x140333a20]
call fcn.140001670
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140003b7f
lea esi, [rax + 1]
jmp 0x140004612
cmp byte [0x140333ac5], dil
je 0x140003bc2
mov rcx, qword [0x140333a28]
call fcn.140001670
mov qword [0x140333a38], rax
test rax, rax
jne 0x140003bb3
mov esi, 1
mov ecx, esi
call fcn.140006450
mov eax, esi
jmp 0x14000466a
lea rdx, str.InnoDB_File_Checksum_Utility._n
mov rcx, rax
call fcn.140003850
cmp byte [0x1403339e8], dil
je 0x140003bd7
lea rcx, str.help
call fcn.140008470
mov ecx, 0x20000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, 0x20000
mov qword [rsp + 0x88], rax
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movss xmm6, dword [0x140035a68]
lea rbx, [rsi + 0xffff]
mov qword [rsp + 0x90], rax
and rbx, 0xffffffffffff0000
add rax, 0xffff
and rax, 0xffffffffffff0000
mov qword [rsp + 0x80], rax
mov eax, ebp
mov dword [rsp + 0x40], eax
cmp eax, dword [rsp + 0x38]
jge 0x14000462f
xorps xmm0, xmm0
movsxd rcx, eax
mov rax, qword [rsp + 0x50]
mov r12, qword [rax + rcx*8]
xor eax, eax
cmp byte [0x140333ac5], al
mov qword [rsp + 0x60], r12
movups xmmword [0x140333a40], xmm0
mov dword [0x140333aa0], eax
movups xmmword [0x140333a50], xmm0
mov byte [0x140333ac4], al
movups xmmword [0x140333a60], xmm0
movups xmmword [0x140333a70], xmm0
movups xmmword [0x140333a80], xmm0
movups xmmword [0x140333a90], xmm0
je 0x140003ca4
mov rcx, qword [0x140333a38]
lea rdx, str.Filename___s_n
mov r8, r12
call fcn.140003850
cmp byte [r12], 0x2d
jne 0x140003cbd
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov byte [rsp + 0x30], 1
jmp 0x140003d12
test r14b, r14b
jne 0x140003d12
lea rdx, [rsp + 0x98]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64]
test eax, eax
jne 0x140004458
mov rbp, qword [rsp + 0xb0]
mov rcx, r12
mov qword [rsp + 0x68], rbp
call fcn.140001f50
mov rdi, rax
test rax, rax
je 0x1400045cc
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
test eax, eax
jne 0x140004446
mov r9, rdi
mov edx, 1
mov r8d, 0x400
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rsi, rax
cmp rax, 0x400
jne 0x14000458f
movzx eax, byte [rbx + 0x22]
movzx ecx, byte [rbx + 0x23]
shl rax, 8
or rcx, rax
movzx eax, byte [rbx + 0x24]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 0x25]
shl rcx, 8
or rcx, rax
mov qword [0x140333a10], rcx
movzx eax, byte [rbx + 4]
movzx ecx, byte [rbx + 5]
shl rax, 8
or rcx, rax
movzx eax, byte [rbx + 6]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 7]
shl rcx, 8
or rcx, rax
mov qword [0x140333aa8], rcx
mov rcx, rbx
call fcn.1400019d0
movzx eax, byte [rbx + 0x37]
movzx r14d, byte [rbx + 0x36]
mov r8, qword [0x140333ac8]
shl r14, 8
or r14, rax
movzx eax, byte [rbx + 0x38]
shl r14, 8
or r14, rax
movzx eax, byte [rbx + 0x39]
shl r14, 8
or r14, rax
mov qword [rsp + 0x78], r14
cmp r8, rsi
je 0x140003dec
mov r9, rdi
mov dl, 1
mov rcx, rbx
call fcn.140003260
cmp rax, qword [0x140333ac8]
mov rsi, rax
jne 0x14000447a
mov rdx, rbx
mov rcx, r12
call fcn.140001540
cmp byte [0x1403339ec], 0
movzx r13d, al
jne 0x140003e3a
mov rbp, qword [0x140333a18]
lea r8, [rsp + 0x70]
mov r9, r14
mov qword [0x140333a18], 0
movzx edx, al
mov rcx, rbx
call fcn.140003680
mov esi, eax
test eax, eax
jne 0x1400044c4
mov qword [0x140333a18], rbp
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x58]
mov r8, rbx
mov byte [rsp + 0x20], r13b
mov rdx, rdi
mov rcx, r12
call fcn.1400032b0
mov esi, eax
test eax, eax
jne 0x1400045d1
cmp byte [0x140333ac3], al
mov rbp, qword [rsp + 0x48]
je 0x140003ead
mov r8, r12
lea rdx, str._n_nFilename::_s_n
mov rcx, rbp
call fcn.140003850
lea rdx, [0x140035860]
mov rcx, rbp
call fcn.140003850
lea rdx, str._tPAGE_NO_t_t_t_tPAGE_TYPE_t_t_t_tEXTRA_INFO_n
mov rcx, rbp
call fcn.140003850
lea rdx, [0x140035860]
mov rcx, rbp
call fcn.140003850
cmp byte [0x1403339eb], 0
je 0x140003ec9
mov rdx, qword [0x140333aa8]
lea rcx, str.page__llu
call fcn.1400046a0
cmp byte [0x1403339ed], 0
jne 0x140003edb
cmp byte [0x140333ac3], 0
je 0x140003ef2
mov rdx, qword [rsp + 0x80]
movzx r9d, r13b
mov r8, rbp
mov rcx, rbx
call fcn.140002020
mov rbp, qword [rsp + 0x68]
xor edx, edx
mov rax, rbp
div qword [0x140333ac8]
cmp byte [0x1403339e9], 0
mov r14, rax
je 0x140003f64
cmp byte [rsp + 0x30], 0
je 0x140003f44
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, r14
lea rdx, str.Number_of_pages:_zu_n
mov rcx, rax
call fcn.140003850
mov eax, dword [rsp + 0x40]
movzx r14d, byte [rsp + 0x30]
inc eax
jmp 0x140003c2c
mov rdx, r14
lea rcx, str.Number_of_pages:_zu_n
call fcn.1400046a0
mov eax, dword [rsp + 0x40]
movzx r14d, byte [rsp + 0x30]
inc eax
jmp 0x140003c2c
cmp byte [0x1403339e8], 0
je 0x140003fc0
cmp byte [rsp + 0x30], 0
jne 0x140003fc0
cmp byte [0x140333ac5], 0
je 0x140003ff7
mov rcx, qword [0x140333a38]
lea rdx, str.file__s___llu_bytes___zu_pages__n
mov r9, rbp
mov qword [rsp + 0x20], r14
mov r8, r12
call fcn.140003850
cmp byte [0x140333ac1], 0
je 0x140003ff7
mov r8, qword [0x140333a00]
lea rdx, str.Innochecksum:_checking_page::_llu__n
mov rcx, qword [0x140333a38]
call fcn.140003850
jmp 0x140003ff7
cmp byte [0x140333ac5], 0
je 0x140003ff7
cmp byte [0x140333ac0], 0
mov r9, qword [0x1403339f8]
jne 0x140003fdd
lea r9, [rax - 1]
mov r8, qword [0x1403339f0]
lea rdx, str.Innochecksum:_checking_pages_in_range::_llu_to__llu_n
mov rcx, qword [0x140333a38]
call fcn.140003850
mov rdx, qword [0x140333ac8]
mov rcx, rbx
xor ebp, ebp
call fcn.140001b80
test al, al
je 0x140004046
nop dword [rax]
mov r8, rdx
mov r9, rdi
xor edx, edx
mov rcx, rbx
call fcn.140003260
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x1400044e3
mov rdx, qword [0x140333ac8]
mov rcx, rbx
inc ebp
call fcn.140001b80
test al, al
jne 0x140004010
movzx eax, byte [rbx + 0x23]
movzx r12d, byte [rbx + 0x22]
shl r12, 8
or r12, rax
movzx eax, byte [rbx + 0x24]
shl r12, 8
or r12, rax
movzx eax, byte [rbx + 0x25]
shl r12, 8
or r12, rax
mov qword [0x140333a10], r12
test ebp, ebp
jle 0x1400040b5
movzx eax, byte [rbx + 5]
movzx ecx, byte [rbx + 4]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 6]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 7]
shl rcx, 8
or rcx, rax
mov rax, qword [0x1403339f0]
mov qword [0x140333aa8], rcx
test rax, rax
je 0x1400041e8
jmp 0x1400040c5
mov rax, qword [0x1403339f0]
test rax, rax
je 0x14000417d
movzx ebp, byte [rsp + 0x30]
mov rcx, rdi
test bpl, bpl
jne 0x140004112
imul edx, eax
xor r8d, r8d
movsxd rdx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x140004502
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
test eax, eax
je 0x140004168
lea rcx, [0x140034be0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov esi, 1
jmp 0x1400045d6
xor esi, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x140004168
nop
mov eax, esi
cmp qword [0x1403339f0], rax
je 0x140004168
mov r8, qword [0x140333ac8]
mov r9, rdi
xor edx, edx
mov rcx, rbx
inc esi
call fcn.140003260
test rax, rax
je 0x140004519
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x140004519
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x140004120
mov rax, qword [0x1403339f0]
test rax, rax
je 0x14000417d
mov qword [0x140333aa8], rax
jmp 0x140004184
inc qword [0x140333aa8]
mov rbp, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x1400043e2
mov r8, qword [0x140333ac8]
mov r9, rdi
xor edx, edx
mov rcx, rbx
call fcn.140003260
mov rsi, rax
test rax, rax
jne 0x1400041c7
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x1400043e2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x14000455f
mov rbp, qword [0x140333ac8]
cmp rsi, rbp
jne 0x14000453d
test r12, r12
jne 0x140004201
mov rcx, rbx
call fcn.140001ed0
movzx r9d, al
mov byte [0x140333ac4], al
jmp 0x14000420b
mov byte [0x140333ac4], 0
xor r9b, r9b
movzx ecx, byte [rbx + 0x18]
movzx eax, byte [rbx + 0x19]
shl rcx, 8
or rcx, rax
cmp rcx, 0x8632
je 0x14000422c
cmp rcx, 0x9219
jne 0x140004236
mov byte [0x140333ac4], 1
mov r9b, 1
cmp byte [0x1403339ec], 0
jne 0x140004264
test r9b, r9b
jne 0x140004264
mov r9, qword [rsp + 0x78]
lea r8, [rsp + 0x70]
movzx edx, r13b
mov rcx, rbx
call fcn.140003680
mov esi, eax
test eax, eax
jne 0x1400045d1
mov rax, qword [rsp + 0x78]
lea r9, [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov rdx, rdi
mov byte [rsp + 0x20], r13b
call fcn.1400032b0
mov esi, eax
test eax, eax
jne 0x1400045d1
cmp byte [0x140333ac0], sil
mov rax, qword [0x140333aa8]
je 0x1400042b2
cmp rax, qword [0x1403339f8]
jae 0x1400043e2
cmp byte [0x1403339eb], 0
je 0x1400042d1
mov rdx, rax
lea rcx, str.page__llu
call fcn.1400046a0
mov rax, qword [0x140333aa8]
cmp byte [0x1403339ed], 0
jne 0x1400042e3
cmp byte [0x140333ac3], 0
je 0x140004303
mov r8, qword [rsp + 0x48]
movzx r9d, r13b
mov rdx, qword [rsp + 0x80]
mov rcx, rbx
call fcn.140002020
mov rax, qword [0x140333aa8]
inc rax
cmp byte [0x1403339e8], 0
mov qword [0x140333aa8], rax
je 0x140004189
cmp byte [rsp + 0x30], 0
jne 0x140004189
test al, 0x3f
jne 0x140004189
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rsi, rax
test r15, r15
jne 0x140004345
mov r15, rax
jmp 0x140004189
sub rax, r15
cmp rax, 1
jl 0x140004189
cmp byte [0x140333ac5], 0
je 0x140004189
mov r8, qword [0x140333aa8]
xorps xmm0, xmm0
test r8, r8
js 0x140004375
cvtsi2ss xmm0, r8
jmp 0x14000438d
mov rax, r8
mov rcx, r8
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
xorps xmm1, xmm1
test r14, r14
js 0x14000439c
cvtsi2ss xmm1, r14
jmp 0x1400043b4
mov rax, r14
mov rcx, r14
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
mov rcx, qword [0x140333a38]
lea rdx, str.page::_llu_okay:__.3f___done_n
divss xmm0, xmm1
dec r8
mulss xmm0, xmm6
cvtps2pd xmm3, xmm0
movq r9, xmm3
call fcn.140003850
mov r15, rsi
jmp 0x140004189
movzx r14d, byte [rsp + 0x30]
test r14b, r14b
jne 0x1400043f6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp byte [0x1403339ed], 0
je 0x14000443b
test r14b, r14b
jne 0x140004428
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbp
lea rdx, str._nFile::_s
mov rcx, rax
call fcn.140003850
mov ecx, 1
jmp 0x14000442d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call fcn.140002e30
mov eax, dword [rsp + 0x40]
inc eax
jmp 0x140003c2c
lea rcx, [0x140034be0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x1400045cc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, r12
lea rdx, str.Error:__s_cannot_be_found_n
mov rcx, rax
call fcn.140003850
jmp 0x1400045cc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:_Was_not_able_to_read_the_rest_of_the_page
call fcn.140003850
mov rbx, qword [0x140333ac8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rsi
lea r8, [rbx - 0x400]
mov rcx, rax
lea rdx, str.of__zu_bytes.__Bytes_read_was__zu_n
call fcn.140003850
jmp 0x1400045cc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:_Page_0_checksum_mismatch__cant_continue.__n
call fcn.140003850
jmp 0x1400045d1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.All_are_zero_filled_pages.
call fcn.140003850
jmp 0x1400045d1
lea rcx, str.Error:_Unable_to_seek_to_necessary_offset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov esi, 1
jmp 0x1400045d6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:_Unable_to_seek_to_necessary_offset
call fcn.140003850
mov esi, 1
jmp 0x1400045d6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbp
lea rdx, str.Error:_bytes_read___zu__doesnt_match_page_size___zu__n
mov rcx, rax
mov r8, rsi
call fcn.140003850
jmp 0x1400045cc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140333ac8]
lea rdx, str.Error_reading__zu_bytes
mov rcx, rax
call fcn.140003850
lea rcx, [0x1400359f0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x1400045cc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:_Was_not_able_to_read_the_minimum_page_size
call fcn.140003850
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rsi
lea rdx, str.of__d_bytes.__Bytes_read_was__zu_n
mov rcx, rax
mov r8d, 0x400
call fcn.140003850
mov esi, 1
movzx ebp, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400045e9
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r13, qword [rsp + 0x90]
test r13, r13
je 0x1400045ff
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test bpl, bpl
jne 0x140004612
test rdi, rdi
je 0x140004612
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x140333a38]
test rcx, rcx
je 0x140004624
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, esi
call fcn.140006450
mov eax, esi
jmp 0x14000466a
cmp byte [0x140333ac5], 0
je 0x140004645
mov rcx, qword [0x140333a38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ecx, ecx
call fcn.140006450
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400331d0
mov rbx, qword [rsp + 0x140]
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret