Function at 0x1400f6540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x80], r9
mov rdi, r8
mov qword [rsp + 0x60], rax
xor eax, eax
mov ebx, edx
mov dword [rsp + 0x30], edx
mov rbp, rcx
mov r9d, edx
lea r8, str.Page__d:
lea ecx, [rax + 0x64]
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], rax
call fcn.1400dc2b0
mov rsi, qword [rbp]
mov qword [rsp + 0x40], rsi
mov eax, dword [rsi + 0x34]
mov dword [rsp + 0x3c], eax
test ebx, ebx
je 0x1400f6fec
mov r8, rdi
mov edx, ebx
mov rcx, rbp
call fcn.1400f5ff0
test eax, eax
jne 0x1400f6fec
mov rsi, qword [rsi]
mov edi, dword [rsi + 0x2c]
test edi, edi
jne 0x1400f66d0
mov rcx, qword [rsi + 0xe0]
lea r9, [rsp + 0x70]
lea r8d, [rax + 1]
mov edx, ebx
call fcn.1400e1420
mov edi, eax
test eax, eax
jne 0x1400f66d0
mov rbx, qword [rsp + 0x70]
cmp qword [rbx + 0x20], 0
jne 0x1400f66f2
mov ecx, dword [rsp + 0x30]
mov qword [rbx + 0x20], rsi
cmp ecx, 0x7fffffff
ja 0x1400f667c
mov eax, dword [0x14025a208]
movsxd r8, dword [rsi + 0xa0]
cdq
idiv r8d
inc eax
cmp ecx, eax
je 0x1400f667c
cmp byte [rsi + 0x11], dil
jne 0x1400f6661
cmp dword [rsi + 0x1c], ecx
jb 0x1400f6661
mov rax, qword [rsi + 0x48]
cmp qword [rax], 0
je 0x1400f6661
mov rcx, rbx
call fcn.1400e4760
mov edi, eax
test eax, eax
je 0x1400f66f2
jmp 0x1400f669c
cmp ecx, dword [rsi + 0xa4]
jbe 0x1400f6670
mov edi, ntohs
jmp 0x1400f669c
mov rcx, qword [rbx]
xor edx, edx
call sub.MSVCR90.dll_memset
jmp 0x1400f66f2
mov edi, ntohs
lea r9, [0x1401ead24]
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov ecx, edi
mov r8d, 0x989f
call fcn.1400dc4c0
test byte [rbx + 0x28], 2
je 0x1400f66aa
mov rcx, rbx
call fcn.1400e13b0
mov rcx, qword [rbx + 0x30]
dec dword [rcx + 0x18]
cmp dword [rbx + 0x18], 1
jne 0x1400f66bd
xor eax, eax
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x40]
mov r8d, 1
mov rdx, rbx
call qword [0x14025a2e8]
mov rax, qword [rsi + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x1400f66e5
mov rcx, rsi
call fcn.1400e3c80
xor eax, eax
mov rbx, rax
test edi, edi
jne 0x1400f6fd2
mov rdi, qword [rbx + 8]
mov rax, qword [rbx]
mov ecx, 0x64
mov qword [rdi + 0x70], rax
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x78], rbx
mov ebx, dword [rsp + 0x30]
mov qword [rdi + 0x68], rax
xor eax, eax
mov dword [rdi + 0x80], ebx
cmp ebx, 1
mov qword [rsp + 0x78], rdi
cmove eax, ecx
mov rcx, rdi
mov byte [rdi + 5], al
mov byte [rdi], 0
call fcn.1400ec010
test eax, eax
je 0x1400f675f
lea r8, str.btreeInitPage___returns_error_code__d
lea rdx, [rsp + 0xb0]
mov r9d, eax
mov rcx, rbp
call fcn.1400f5f40
mov rcx, rdi
call fcn.1400ec5c0
jmp 0x1400f6fec
xor eax, eax
mov dword [rsp + 0x50], eax
mov esi, eax
cmp ax, word [rdi + 0x10]
jae 0x1400f69dc
mov qword [rsp + 0x58], rax
jmp 0x1400f6784
mov ebx, dword [rsp + 0x30]
cmp dword [rbp + 0x20], 0
je 0x1400f69dc
lea r8, str.On_tree_page__d_cell__d:
lea rdx, [rsp + 0xb0]
mov r9d, ebx
mov ecx, 0x64
mov dword [rsp + 0x20], esi
call fcn.1400dc2b0
mov r11, qword [rdi + 0x70]
mov rdx, qword [rsp + 0x58]
movzx ecx, word [rdi + 0xc]
lea r8, [rsp + 0x88]
add rcx, r11
movzx eax, byte [rcx + rdx]
shl eax, 8
movsxd rbx, eax
movzx eax, byte [rcx + rdx + 1]
mov rcx, rdi
or rbx, rax
movzx eax, word [rdi + 0x12]
and rbx, rax
add rbx, r11
mov rdx, rbx
mov qword [rsp + 0x70], rbx
call fcn.1400eb540
cmp byte [rdi + 2], 0
mov ecx, dword [rsp + 0x98]
mov dword [rsp + 0x38], ecx
jne 0x1400f680e
mov eax, dword [rsp + 0x90]
add ecx, eax
jmp 0x1400f6865
test esi, esi
jne 0x1400f6826
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rax
jmp 0x1400f6865
mov rbx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x48]
cmp rbx, rax
jg 0x1400f685b
lea r8, str.Rowid__lld_out_of_order__previous_was__lld_
lea rdx, [rsp + 0xb0]
mov r9, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400f5f40
mov ecx, dword [rsp + 0x38]
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x70]
movzx edx, word [rsp + 0xa2]
mov r9, qword [rsp + 0x40]
cmp ecx, edx
jbe 0x1400f6920
mov eax, dword [r9 + 0x34]
movzx r8d, word [rsp + 0xa4]
add rax, qword [rdi + 0x70]
add r8, rbx
cmp r8, rax
ja 0x1400f6920
sub ecx, edx
mov edx, dword [rsp + 0x3c]
lea eax, [rcx + rdx - 5]
lea ecx, [rdx - 4]
xor edx, edx
div ecx
movzx ecx, byte [r8 + 1]
mov dword [rsp + 0x34], eax
movzx eax, byte [r8]
shl eax, 8
or eax, ecx
movzx ecx, byte [r8 + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [r8 + 3]
shl eax, 8
or eax, ecx
cmp byte [r9 + 0x24], 0
mov dword [rsp + 0x38], eax
je 0x1400f68fc
mov r9d, dword [rsp + 0x30]
lea rcx, [rsp + 0xb0]
mov r8b, 3
mov qword [rsp + 0x20], rcx
mov rcx, rbp
mov edx, eax
call fcn.1400f6060
mov eax, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x34]
lea rcx, [rsp + 0xb0]
mov r8d, eax
mov qword [rsp + 0x20], rcx
mov rcx, rbp
xor edx, edx
call fcn.1400f6120
mov r9, qword [rsp + 0x40]
cmp byte [rdi + 3], 0
jne 0x1400f69c8
movzx ebx, byte [rbx]
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rcx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 3]
shl ebx, 8
or ebx, eax
cmp byte [r9 + 0x24], 0
je 0x1400f6973
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0xb0]
mov r8b, 5
mov edx, ebx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400f6060
mov ecx, 0
lea rax, [rsp + 0x48]
test esi, esi
cmove rax, rcx
lea r9, [rsp + 0x68]
lea r8, [rsp + 0xb0]
mov rcx, rbp
mov edx, ebx
mov qword [rsp + 0x20], rax
call fcn.1400f6540
mov ebx, eax
test esi, esi
jle 0x1400f69c4
mov eax, dword [rsp + 0x50]
cmp ebx, eax
je 0x1400f69c4
lea r8, str.Child_page_depth_differs
lea rdx, [rsp + 0xb0]
mov rcx, rbp
call fcn.1400f5f40
mov dword [rsp + 0x50], ebx
movzx eax, word [rdi + 0x10]
add qword [rsp + 0x58], 2
inc esi
cmp esi, eax
jl 0x1400f6780
cmp byte [rdi + 3], 0
jne 0x1400f6a91
movzx eax, byte [rdi + 5]
mov esi, dword [rsp + 0x30]
lea r8, str.On_page__d_at_right_child:
add eax, 8
mov r9d, esi
mov ecx, 0x64
movsxd rdx, eax
add rdx, qword [rdi + 0x70]
movzx eax, byte [rdx + 1]
movzx ebx, byte [rdx]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdx + 3]
lea rdx, [rsp + 0xb0]
shl ebx, 8
or ebx, eax
call fcn.1400dc2b0
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x24], 0
je 0x1400f6a5a
lea rax, [rsp + 0xb0]
mov r9d, esi
mov r8b, 5
mov edx, ebx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400f6060
cmp word [rdi + 0x10], 0
mov ecx, 0
lea rax, [rsp + 0x48]
cmove rax, rcx
lea r8, [rsp + 0xb0]
mov edx, ebx
xor r9d, r9d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400f6540
cmp byte [rdi + 3], 0
je 0x1400f6b58
cmp byte [rdi + 2], 0
je 0x1400f6b58
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x1400f6b25
mov rbx, qword [rsp + 0x60]
mov rax, qword [rsi]
test rbx, rbx
jne 0x1400f6acc
mov r9, qword [rsp + 0x48]
cmp r9, rax
jle 0x1400f6b58
lea r8, str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
jmp 0x1400f6b43
mov r9, qword [rsp + 0x68]
cmp r9, rax
jg 0x1400f6af2
lea r8, str.Rowid__lld_out_of_order__min_less_than_parent_min_of__lld_
lea rdx, [rsp + 0xb0]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400f5f40
mov rax, qword [rbx]
mov r9, qword [rsp + 0x48]
cmp r9, rax
jle 0x1400f6b1b
lea r8, str.Rowid__lld_out_of_order__max_larger_than_parent_max_of__lld_
lea rdx, [rsp + 0xb0]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400f5f40
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
jmp 0x1400f6b58
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400f6b58
mov rax, qword [rax]
mov r9, qword [rsp + 0x68]
cmp r9, rax
jg 0x1400f6b58
lea r8, str.Rowid__lld_out_of_order__min_less_than_parent_max_of__lld_
lea rdx, [rsp + 0xb0]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400f5f40
movzx eax, byte [rdi + 5]
mov rcx, qword [0x1402603e0]
mov rsi, qword [rdi + 0x70]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
mov ebx, dword [rax + 0x30]
test rcx, rcx
je 0x1400f6b7e
call qword [0x14025a288]
mov ecx, ebx
call fcn.1400e1af0
mov rcx, qword [0x1402603e0]
mov rdi, rax
test rcx, rcx
je 0x1400f6b9a
call qword [0x14025a298]
test rdi, rdi
jne 0x1400f6bab
mov dword [rbp + 0x28], 1
jmp 0x1400f6dd6
movsxd rax, dword [rsp + 0x34]
xor edx, edx
movzx ecx, byte [rax + rsi + 5]
movzx eax, byte [rax + rsi + 6]
shl ecx, 8
or ecx, eax
mov eax, dword [rsp + 0x3c]
dec ecx
movzx ecx, cx
inc ecx
sub eax, ecx
movsxd rbx, ecx
lea rcx, [rbx + rdi]
movsxd r8, eax
call sub.MSVCR90.dll_memset
mov r8, rbx
mov edx, 1
mov rcx, rdi
call sub.MSVCR90.dll_memset
movsxd r10, dword [rsp + 0x34]
mov r8, qword [rsp + 0x78]
movzx eax, byte [r10 + rsi + 4]
movzx r11d, byte [r10 + rsi + 3]
mov ecx, 3
shl r11d, 8
or r11d, eax
movzx eax, byte [r8 + 3]
sub ecx, eax
mov eax, dword [rsp + 0x34]
movsxd rdx, r11d
lea eax, [rax + rcx*4]
xor ecx, ecx
mov qword [rsp + 0x58], rdx
movsxd r9, eax
mov dword [rsp + 0x38], ecx
test r11d, r11d
jle 0x1400f6d01
mov r10d, dword [rsp + 0x3c]
lea rax, [r9 + rsi]
add r10d, 0xfffffffc
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], r10d
nop
movzx ebx, byte [rax]
movzx eax, byte [rax + 1]
shl ebx, 8
or ebx, eax
mov eax, 0x10000
cmp ebx, r10d
jg 0x1400f6c80
movsxd rdx, ebx
mov rcx, r8
add rdx, rsi
call fcn.1400eb730
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x58]
movzx eax, ax
lea eax, [rax + rbx - 1]
cmp eax, dword [rsp + 0x3c]
jl 0x1400f6cad
mov eax, dword [rsp + 0x30]
mov r9d, ecx
lea r8, str.Corruption_detected_in_cell__d_on_page__d
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.1400f5f40
mov rdx, qword [rsp + 0x58]
jmp 0x1400f6ccb
cdqe
movsxd rcx, ebx
cmp rax, rcx
jl 0x1400f6ccb
nop word [rax + rax]
inc byte [rax + rdi]
dec rax
cmp rax, rcx
jge 0x1400f6cc0
mov ecx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
mov r8, qword [rsp + 0x78]
mov r10d, dword [rsp + 0x40]
inc ecx
add rax, 2
sub rdx, 1
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdx
jne 0x1400f6c50
movsxd r10, dword [rsp + 0x34]
movzx r8d, byte [r10 + rsi + 1]
movzx eax, byte [r10 + rsi + 2]
shl r8d, 8
or r8d, eax
jle 0x1400f6d5e
nop word [rax + rax]
movsxd rdx, r8d
movzx ecx, byte [rdx + rsi + 2]
movzx eax, byte [rdx + rsi + 3]
shl ecx, 8
or ecx, eax
lea eax, [rcx + r8 - 1]
movsxd rcx, eax
cmp rcx, rdx
jl 0x1400f6d4b
nop
inc byte [rcx + rdi]
dec rcx
cmp rcx, rdx
jge 0x1400f6d40
movzx r8d, byte [rdx + rsi]
movzx eax, byte [rdx + rsi + 1]
shl r8d, 8
or r8d, eax
jg 0x1400f6d20
movsxd rdx, dword [rsp + 0x3c]
xor eax, eax
mov ebx, eax
mov r9d, eax
test rdx, rdx
jle 0x1400f6dac
nop
movzx ecx, byte [rax + rdi]
test cl, cl
jne 0x1400f6d7c
inc ebx
jmp 0x1400f6d81
cmp cl, 1
jg 0x1400f6d8e
inc rax
inc r9d
cmp rax, rdx
jl 0x1400f6d70
jmp 0x1400f6dac
mov eax, dword [rsp + 0x30]
lea r8, str.Multiple_uses_for_byte__d_of_page__d
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.1400f5f40
movsxd r10, dword [rsp + 0x34]
movzx eax, byte [r10 + rsi + 7]
cmp ebx, eax
je 0x1400f6dd6
mov ecx, dword [rsp + 0x30]
lea r8, str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
mov r9d, ebx
mov dword [rsp + 0x28], ecx
mov rcx, rbp
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.1400f5f40
mov rcx, qword [0x1402603e0]
test rcx, rcx
je 0x1400f6def
call qword [0x14025a288]
mov rcx, qword [0x1402603e0]
test rdi, rdi
je 0x1400f6e6f
cmp rdi, qword [0x140260410]
jb 0x1400f6e38
cmp rdi, qword [0x140260418]
jae 0x1400f6e38
mov eax, dword [0x1402605bc]
mov ecx, dword [0x140260594]
dec ecx
cmp ecx, eax
mov dword [0x140260594], ecx
cmovg eax, ecx
mov dword [0x1402605bc], eax
mov rax, qword [0x140260420]
mov qword [rdi], rax
mov qword [0x140260420], rdi
jmp 0x1400f6e68
mov rcx, rdi
call qword [0x14025a240]
mov ecx, dword [0x140260598]
sub ecx, eax
mov eax, dword [0x1402605c0]
cmp ecx, eax
mov dword [0x140260598], ecx
cmovg eax, ecx
mov rcx, rdi
mov dword [0x1402605c0], eax
call fcn.1400da600
mov rcx, qword [0x1402603e0]
test rcx, rcx
je 0x1400f6e7a
call qword [0x14025a298]
mov rdx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x78]
test rdx, rdx
je 0x1400f6fca
add word [rdx + 0x2a], 0xffff
mov rbx, qword [rdx + 0x20]
jne 0x1400f6f60
mov rax, qword [rdx + 0x30]
dec dword [rax + 0x18]
test byte [rdx + 0x28], 2
mov rcx, qword [rdx + 0x30]
jne 0x1400f6ed4
cmp dword [rcx + 0x28], 0
je 0x1400f6f60
cmp dword [rdx + 0x18], 1
jne 0x1400f6ec2
xor eax, eax
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x40]
xor r8d, r8d
call qword [0x14025a2e8]
jmp 0x1400f6f60
cmp qword [rcx + 0x10], rdx
jne 0x1400f6ef6
mov rax, qword [rdx + 0x40]
test rax, rax
je 0x1400f6ef2
test byte [rax + 0x28], 4
je 0x1400f6ef2
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1400f6ee3
mov qword [rcx + 0x10], rax
mov r8, qword [rdx + 0x38]
mov rax, qword [rdx + 0x40]
test r8, r8
je 0x1400f6f09
mov qword [r8 + 0x40], rax
jmp 0x1400f6f0d
mov qword [rcx + 8], rax
mov r8, qword [rdx + 0x40]
mov rax, qword [rdx + 0x38]
test r8, r8
je 0x1400f6f20
mov qword [r8 + 0x38], rax
jmp 0x1400f6f23
mov qword [rcx], rax
xor eax, eax
mov qword [rdx + 0x38], rax
mov qword [rdx + 0x40], rax
mov rax, qword [rdx + 0x30]
mov rcx, qword [rax]
mov qword [rdx + 0x38], rcx
test rcx, rcx
je 0x1400f6f41
mov qword [rcx + 0x40], rdx
cmp qword [rax + 8], 0
mov qword [rax], rdx
jne 0x1400f6f4f
mov qword [rax + 8], rdx
cmp qword [rax + 0x10], 0
jne 0x1400f6f60
test byte [rdx + 0x28], 4
jne 0x1400f6f60
mov qword [rax + 0x10], rdx
mov rax, qword [rbx + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x1400f6fca
movzx eax, byte [rbx + 0x12]
cmp al, 6
je 0x1400f6fc2
test al, al
je 0x1400f6fc2
cmp al, 2
jb 0x1400f6fb2
mov rax, qword [0x1402605e0]
test rax, rax
je 0x1400f6f8b
call rax
mov rcx, rbx
call fcn.1400e7360
mov r11, qword [0x1402605e8]
test r11, r11
je 0x1400f6fc2
call r11
mov rcx, rbx
call fcn.1400e3930
mov eax, dword [rsp + 0x50]
inc eax
jmp 0x1400f6fee
cmp byte [rbx + 8], 0
jne 0x1400f6fc2
xor edx, edx
mov rcx, rbx
call fcn.1400e3a80
mov rcx, rbx
call fcn.1400e3930
mov eax, dword [rsp + 0x50]
inc eax
jmp 0x1400f6fee
lea r8, str.unable_to_get_the_page._error_code_d
lea rdx, [rsp + 0xb0]
mov r9d, edi
mov rcx, rbp
call fcn.1400f5f40
xor eax, eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140155650
add rsp, 0x138
pop rdi
pop rsi
pop rbp
pop rbx
ret