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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x1801fdc38]
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.1800bb7f0
mov rsi, qword [rbp]
mov qword [rsp + 0x40], rsi
mov eax, dword [rsi + 0x38]
mov dword [rsp + 0x3c], eax
test ebx, ebx
je 0x1800d9a89
mov r8, rdi
mov edx, ebx
mov rcx, rbp
call fcn.1800bcc40
test eax, eax
jne 0x1800d9a89
mov rsi, qword [rsi]
mov edi, dword [rsi + 0x2c]
test edi, edi
jne 0x1800d9160
mov rcx, qword [rsi + 0xe0]
lea r9, [rsp + 0x70]
lea r8d, [rax + 1]
mov edx, ebx
call fcn.1800a6f40
mov edi, eax
test eax, eax
jne 0x1800d9160
mov rbx, qword [rsp + 0x70]
cmp qword [rbx + 0x20], 0
jne 0x1800d9182
mov ecx, dword [rsp + 0x30]
mov qword [rbx + 0x20], rsi
cmp ecx, 0x7fffffff
ja 0x1800d910c
mov eax, dword [0x1801fc9c0]
movsxd r8, dword [rsi + 0xa0]
cdq
idiv r8d
inc eax
cmp ecx, eax
je 0x1800d910c
cmp byte [rsi + 0x11], dil
jne 0x1800d90f1
cmp dword [rsi + 0x1c], ecx
jb 0x1800d90f1
mov rax, qword [rsi + 0x48]
cmp qword [rax], 0
je 0x1800d90f1
mov rcx, rbx
call fcn.1800cd5f0
mov edi, eax
test eax, eax
je 0x1800d9182
jmp 0x1800d912c
cmp ecx, dword [rsi + 0xa4]
jbe 0x1800d9100
mov edi, 0xd
jmp 0x1800d912c
mov rcx, qword [rbx]
xor edx, edx
call fcn.18011a1e0
jmp 0x1800d9182
mov edi, 0xb
lea r9, [0x18018ea4c]
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov ecx, edi
mov r8d, 0x9a42
call fcn.1800bb980
test byte [rbx + 0x28], 2
je 0x1800d913a
mov rcx, rbx
call fcn.1800a6ed0
mov rcx, qword [rbx + 0x30]
dec dword [rcx + 0x18]
cmp dword [rbx + 0x18], 1
jne 0x1800d914d
xor eax, eax
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x40]
mov r8d, 1
mov rdx, rbx
call qword [0x1801fc928]
mov rax, qword [rsi + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x1800d9175
mov rcx, rsi
call fcn.1800d31c0
xor eax, eax
mov rbx, rax
test edi, edi
jne 0x1800d9a6f
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.1800c7050
test eax, eax
je 0x1800d91ef
lea r8, str.btreeInitPage___returns_error_code__d
lea rdx, [rsp + 0xb0]
mov r9d, eax
mov rcx, rbp
call fcn.1800bcbb0
mov rcx, rdi
call fcn.1800d4320
jmp 0x1800d9a89
xor eax, eax
mov dword [rsp + 0x50], eax
mov esi, eax
cmp ax, word [rdi + 0x10]
jae 0x1800d946c
mov qword [rsp + 0x58], rax
jmp 0x1800d9214
mov ebx, dword [rsp + 0x30]
cmp dword [rbp + 0x20], 0
je 0x1800d946c
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.1800bb7f0
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.1800a9b00
cmp byte [rdi + 2], 0
mov ecx, dword [rsp + 0x98]
mov dword [rsp + 0x38], ecx
jne 0x1800d929e
mov eax, dword [rsp + 0x90]
add ecx, eax
jmp 0x1800d92f5
test esi, esi
jne 0x1800d92b6
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rax
jmp 0x1800d92f5
mov rbx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x48]
cmp rbx, rax
jg 0x1800d92eb
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.1800bcbb0
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 0x1800d93b0
mov eax, dword [r9 + 0x38]
movzx r8d, word [rsp + 0xa4]
add rax, qword [rdi + 0x70]
add r8, rbx
cmp r8, rax
ja 0x1800d93b0
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 + 0x25], 0
mov dword [rsp + 0x38], eax
je 0x1800d938c
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.1800d8af0
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.1800d8bb0
mov r9, qword [rsp + 0x40]
cmp byte [rdi + 3], 0
jne 0x1800d9458
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 + 0x25], 0
je 0x1800d9403
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.1800d8af0
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.1800d8fd0
mov ebx, eax
test esi, esi
jle 0x1800d9454
mov eax, dword [rsp + 0x50]
cmp ebx, eax
je 0x1800d9454
lea r8, str.Child_page_depth_differs
lea rdx, [rsp + 0xb0]
mov rcx, rbp
call fcn.1800bcbb0
mov dword [rsp + 0x50], ebx
movzx eax, word [rdi + 0x10]
add qword [rsp + 0x58], 2
inc esi
cmp esi, eax
jl 0x1800d9210
cmp byte [rdi + 3], 0
jne 0x1800d9521
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.1800bb7f0
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x25], 0
je 0x1800d94ea
lea rax, [rsp + 0xb0]
mov r9d, esi
mov r8b, 5
mov edx, ebx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1800d8af0
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.1800d8fd0
cmp byte [rdi + 3], 0
je 0x1800d95e8
cmp byte [rdi + 2], 0
je 0x1800d95e8
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x1800d95b5
mov rbx, qword [rsp + 0x60]
mov rax, qword [rsi]
test rbx, rbx
jne 0x1800d955c
mov r9, qword [rsp + 0x48]
cmp r9, rax
jle 0x1800d95e8
lea r8, str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
jmp 0x1800d95d3
mov r9, qword [rsp + 0x68]
cmp r9, rax
jg 0x1800d9582
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.1800bcbb0
mov rax, qword [rbx]
mov r9, qword [rsp + 0x48]
cmp r9, rax
jle 0x1800d95ab
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.1800bcbb0
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
jmp 0x1800d95e8
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1800d95e8
mov rax, qword [rax]
mov r9, qword [rsp + 0x68]
cmp r9, rax
jg 0x1800d95e8
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.1800bcbb0
movzx eax, byte [rdi + 5]
mov rcx, qword [0x180205640]
mov rsi, qword [rdi + 0x70]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
mov ebx, dword [rax + 0x34]
test rcx, rcx
je 0x1800d960e
call qword [0x1801fc8c8]
mov ecx, ebx
call fcn.1800b3480
mov rcx, qword [0x180205640]
mov rdi, rax
test rcx, rcx
je 0x1800d962a
call qword [0x1801fc8d8]
test rdi, rdi
jne 0x1800d963b
mov dword [rbp + 0x28], 1
jmp 0x1800d9866
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 fcn.18011a1e0
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.18011a1e0
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 0x1800d9791
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 0x1800d9710
movsxd rdx, ebx
mov rcx, r8
add rdx, rsi
call fcn.1800a9d00
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x58]
movzx eax, ax
lea eax, [rax + rbx - 1]
cmp eax, dword [rsp + 0x3c]
jl 0x1800d973d
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.1800bcbb0
mov rdx, qword [rsp + 0x58]
jmp 0x1800d975b
cdqe
movsxd rcx, ebx
cmp rax, rcx
jl 0x1800d975b
nop word [rax + rax]
inc byte [rax + rdi]
dec rax
cmp rax, rcx
jge 0x1800d9750
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 0x1800d96e0
movsxd r10, dword [rsp + 0x34]
movzx r8d, byte [r10 + rsi + 1]
movzx eax, byte [r10 + rsi + 2]
shl r8d, 8
or r8d, eax
jle 0x1800d97ee
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 0x1800d97db
nop
inc byte [rcx + rdi]
dec rcx
cmp rcx, rdx
jge 0x1800d97d0
movzx r8d, byte [rdx + rsi]
movzx eax, byte [rdx + rsi + 1]
shl r8d, 8
or r8d, eax
jg 0x1800d97b0
movsxd rdx, dword [rsp + 0x3c]
xor eax, eax
mov ebx, eax
mov r9d, eax
test rdx, rdx
jle 0x1800d983c
nop
movzx ecx, byte [rax + rdi]
test cl, cl
jne 0x1800d980c
inc ebx
jmp 0x1800d9811
cmp cl, 1
jg 0x1800d981e
inc rax
inc r9d
cmp rax, rdx
jl 0x1800d9800
jmp 0x1800d983c
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.1800bcbb0
movsxd r10, dword [rsp + 0x34]
movzx eax, byte [r10 + rsi + 7]
cmp ebx, eax
je 0x1800d9866
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.1800bcbb0
mov rcx, qword [0x180205640]
test rcx, rcx
je 0x1800d987f
call qword [0x1801fc8c8]
mov rcx, qword [0x180205640]
test rdi, rdi
je 0x1800d9909
cmp rdi, qword [0x180205678]
jb 0x1800d98d2
cmp rdi, qword [0x180205680]
jae 0x1800d98d2
mov eax, dword [0x1802057dc]
mov ecx, dword [0x1802057b4]
dec ecx
cmp ecx, eax
mov dword [0x1802057b4], ecx
cmovg eax, ecx
mov dword [0x1802057dc], eax
mov rax, qword [0x180205688]
mov qword [rdi], rax
inc dword [0x180205670]
mov qword [0x180205688], rdi
jmp 0x1800d9902
mov rcx, rdi
call qword [0x1801fc880]
mov ecx, dword [0x1802057b8]
sub ecx, eax
mov eax, dword [0x1802057e0]
cmp ecx, eax
mov dword [0x1802057b8], ecx
cmovg eax, ecx
mov rcx, rdi
mov dword [0x1802057e0], eax
call fcn.1800a4cd0
mov rcx, qword [0x180205640]
test rcx, rcx
je 0x1800d9914
call qword [0x1801fc8d8]
mov rdx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x78]
test rdx, rdx
je 0x1800d9a67
add word [rdx + 0x2a], 0xffff
mov rbx, qword [rdx + 0x20]
jne 0x1800d99fd
mov rax, qword [rdx + 0x30]
dec dword [rax + 0x18]
test byte [rdx + 0x28], 2
mov rcx, qword [rdx + 0x30]
jne 0x1800d996e
cmp dword [rcx + 0x28], 0
je 0x1800d99fd
cmp dword [rdx + 0x18], 1
jne 0x1800d995c
xor eax, eax
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x40]
xor r8d, r8d
call qword [0x1801fc928]
jmp 0x1800d99fd
cmp qword [rcx + 0x10], rdx
jne 0x1800d9993
mov rax, qword [rdx + 0x40]
test rax, rax
je 0x1800d998f
nop dword [rax]
test byte [rax + 0x28], 4
je 0x1800d998f
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1800d9980
mov qword [rcx + 0x10], rax
mov r8, qword [rdx + 0x38]
mov rax, qword [rdx + 0x40]
test r8, r8
je 0x1800d99a6
mov qword [r8 + 0x40], rax
jmp 0x1800d99aa
mov qword [rcx + 8], rax
mov r8, qword [rdx + 0x40]
mov rax, qword [rdx + 0x38]
test r8, r8
je 0x1800d99bd
mov qword [r8 + 0x38], rax
jmp 0x1800d99c0
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 0x1800d99de
mov qword [rcx + 0x40], rdx
cmp qword [rax + 8], 0
mov qword [rax], rdx
jne 0x1800d99ec
mov qword [rax + 8], rdx
cmp qword [rax + 0x10], 0
jne 0x1800d99fd
test byte [rdx + 0x28], 4
jne 0x1800d99fd
mov qword [rax + 0x10], rdx
mov rax, qword [rbx + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x1800d9a67
movzx eax, byte [rbx + 0x12]
cmp al, 6
je 0x1800d9a5f
test al, al
je 0x1800d9a5f
cmp al, 2
jb 0x1800d9a4f
mov rax, qword [0x180205808]
test rax, rax
je 0x1800d9a28
call rax
mov rcx, rbx
call fcn.1800d3110
mov r11, qword [0x180205810]
test r11, r11
je 0x1800d9a5f
call r11
mov rcx, rbx
call fcn.1800bc5c0
mov eax, dword [rsp + 0x50]
inc eax
jmp 0x1800d9a8b
cmp byte [rbx + 8], 0
jne 0x1800d9a5f
xor edx, edx
mov rcx, rbx
call fcn.1800b3d30
mov rcx, rbx
call fcn.1800bc5c0
mov eax, dword [rsp + 0x50]
inc eax
jmp 0x1800d9a8b
lea r8, str.unable_to_get_the_page._error_code_d
lea rdx, [rsp + 0xb0]
mov r9d, edi
mov rcx, rbp
call fcn.1800bcbb0
xor eax, eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180119820
add rsp, 0x138
pop rdi
pop rsi
pop rbp
pop rbx
ret