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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x180175020]
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.180065e50
mov rsi, qword [rbp]
mov qword [rsp + 0x40], rsi
mov eax, dword [rsi + 0x34]
mov dword [rsp + 0x3c], eax
test ebx, ebx
je 0x180080b8c
mov r8, rdi
mov edx, ebx
mov rcx, rbp
call fcn.18007fb90
test eax, eax
jne 0x180080b8c
mov rsi, qword [rsi]
mov edi, dword [rsi + 0x2c]
test edi, edi
jne 0x180080270
mov rcx, qword [rsi + 0xe0]
lea r9, [rsp + 0x70]
lea r8d, [rax + 1]
mov edx, ebx
call fcn.18006afc0
mov edi, eax
test eax, eax
jne 0x180080270
mov rbx, qword [rsp + 0x70]
cmp qword [rbx + 0x20], 0
jne 0x180080292
mov ecx, dword [rsp + 0x30]
mov qword [rbx + 0x20], rsi
cmp ecx, 0x7fffffff
ja 0x18008021c
mov eax, dword [0x1801757d0]
movsxd r8, dword [rsi + 0xa0]
cdq
idiv r8d
inc eax
cmp ecx, eax
je 0x18008021c
cmp byte [rsi + 0x11], dil
jne 0x180080201
cmp dword [rsi + 0x1c], ecx
jb 0x180080201
mov rax, qword [rsi + 0x48]
cmp qword [rax], 0
je 0x180080201
mov rcx, rbx
call fcn.18006e300
mov edi, eax
test eax, eax
je 0x180080292
jmp 0x18008023c
cmp ecx, dword [rsi + 0xa4]
jbe 0x180080210
mov edi, 0xd
jmp 0x18008023c
mov rcx, qword [rbx]
xor edx, edx
call sub.MSVCR90.dll_memset
jmp 0x180080292
mov edi, 0xb
lea r9, [0x180137514]
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov ecx, edi
mov r8d, 0x989f
call fcn.180066060
test byte [rbx + 0x28], 2
je 0x18008024a
mov rcx, rbx
call fcn.18006af50
mov rcx, qword [rbx + 0x30]
dec dword [rcx + 0x18]
cmp dword [rbx + 0x18], 1
jne 0x18008025d
xor eax, eax
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x40]
mov r8d, 1
mov rdx, rbx
call qword [0x180175738]
mov rax, qword [rsi + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x180080285
mov rcx, rsi
call fcn.18006d820
xor eax, eax
mov rbx, rax
test edi, edi
jne 0x180080b72
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.180075bb0
test eax, eax
je 0x1800802ff
lea r8, str.btreeInitPage___returns_error_code__d
lea rdx, [rsp + 0xb0]
mov r9d, eax
mov rcx, rbp
call fcn.18007fae0
mov rcx, rdi
call fcn.180076160
jmp 0x180080b8c
xor eax, eax
mov dword [rsp + 0x50], eax
mov esi, eax
cmp ax, word [rdi + 0x10]
jae 0x18008057c
mov qword [rsp + 0x58], rax
jmp 0x180080324
mov ebx, dword [rsp + 0x30]
cmp dword [rbp + 0x20], 0
je 0x18008057c
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.180065e50
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.1800750e0
cmp byte [rdi + 2], 0
mov ecx, dword [rsp + 0x98]
mov dword [rsp + 0x38], ecx
jne 0x1800803ae
mov eax, dword [rsp + 0x90]
add ecx, eax
jmp 0x180080405
test esi, esi
jne 0x1800803c6
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rax
jmp 0x180080405
mov rbx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x48]
cmp rbx, rax
jg 0x1800803fb
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.18007fae0
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 0x1800804c0
mov eax, dword [r9 + 0x34]
movzx r8d, word [rsp + 0xa4]
add rax, qword [rdi + 0x70]
add r8, rbx
cmp r8, rax
ja 0x1800804c0
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 0x18008049c
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.18007fc00
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.18007fcc0
mov r9, qword [rsp + 0x40]
cmp byte [rdi + 3], 0
jne 0x180080568
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 0x180080513
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.18007fc00
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.1800800e0
mov ebx, eax
test esi, esi
jle 0x180080564
mov eax, dword [rsp + 0x50]
cmp ebx, eax
je 0x180080564
lea r8, str.Child_page_depth_differs
lea rdx, [rsp + 0xb0]
mov rcx, rbp
call fcn.18007fae0
mov dword [rsp + 0x50], ebx
movzx eax, word [rdi + 0x10]
add qword [rsp + 0x58], 2
inc esi
cmp esi, eax
jl 0x180080320
cmp byte [rdi + 3], 0
jne 0x180080631
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.180065e50
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x24], 0
je 0x1800805fa
lea rax, [rsp + 0xb0]
mov r9d, esi
mov r8b, 5
mov edx, ebx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18007fc00
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.1800800e0
cmp byte [rdi + 3], 0
je 0x1800806f8
cmp byte [rdi + 2], 0
je 0x1800806f8
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x1800806c5
mov rbx, qword [rsp + 0x60]
mov rax, qword [rsi]
test rbx, rbx
jne 0x18008066c
mov r9, qword [rsp + 0x48]
cmp r9, rax
jle 0x1800806f8
lea r8, str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
jmp 0x1800806e3
mov r9, qword [rsp + 0x68]
cmp r9, rax
jg 0x180080692
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.18007fae0
mov rax, qword [rbx]
mov r9, qword [rsp + 0x48]
cmp r9, rax
jle 0x1800806bb
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.18007fae0
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
jmp 0x1800806f8
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1800806f8
mov rax, qword [rax]
mov r9, qword [rsp + 0x68]
cmp r9, rax
jg 0x1800806f8
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.18007fae0
movzx eax, byte [rdi + 5]
mov rcx, qword [0x180179280]
mov rsi, qword [rdi + 0x70]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
mov ebx, dword [rax + 0x30]
test rcx, rcx
je 0x18008071e
call qword [0x1801756d8]
mov ecx, ebx
call fcn.18006b690
mov rcx, qword [0x180179280]
mov rdi, rax
test rcx, rcx
je 0x18008073a
call qword [0x1801756e8]
test rdi, rdi
jne 0x18008074b
mov dword [rbp + 0x28], 1
jmp 0x180080976
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 0x1800808a1
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 0x180080820
movsxd rdx, ebx
mov rcx, r8
add rdx, rsi
call fcn.1800752d0
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x58]
movzx eax, ax
lea eax, [rax + rbx - 1]
cmp eax, dword [rsp + 0x3c]
jl 0x18008084d
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.18007fae0
mov rdx, qword [rsp + 0x58]
jmp 0x18008086b
cdqe
movsxd rcx, ebx
cmp rax, rcx
jl 0x18008086b
nop word [rax + rax]
inc byte [rax + rdi]
dec rax
cmp rax, rcx
jge 0x180080860
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 0x1800807f0
movsxd r10, dword [rsp + 0x34]
movzx r8d, byte [r10 + rsi + 1]
movzx eax, byte [r10 + rsi + 2]
shl r8d, 8
or r8d, eax
jle 0x1800808fe
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 0x1800808eb
nop
inc byte [rcx + rdi]
dec rcx
cmp rcx, rdx
jge 0x1800808e0
movzx r8d, byte [rdx + rsi]
movzx eax, byte [rdx + rsi + 1]
shl r8d, 8
or r8d, eax
jg 0x1800808c0
movsxd rdx, dword [rsp + 0x3c]
xor eax, eax
mov ebx, eax
mov r9d, eax
test rdx, rdx
jle 0x18008094c
nop
movzx ecx, byte [rax + rdi]
test cl, cl
jne 0x18008091c
inc ebx
jmp 0x180080921
cmp cl, 1
jg 0x18008092e
inc rax
inc r9d
cmp rax, rdx
jl 0x180080910
jmp 0x18008094c
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.18007fae0
movsxd r10, dword [rsp + 0x34]
movzx eax, byte [r10 + rsi + 7]
cmp ebx, eax
je 0x180080976
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.18007fae0
mov rcx, qword [0x180179280]
test rcx, rcx
je 0x18008098f
call qword [0x1801756d8]
mov rcx, qword [0x180179280]
test rdi, rdi
je 0x180080a0f
cmp rdi, qword [0x1801792b0]
jb 0x1800809d8
cmp rdi, qword [0x1801792b8]
jae 0x1800809d8
mov eax, dword [0x18017945c]
mov ecx, dword [0x180179434]
dec ecx
cmp ecx, eax
mov dword [0x180179434], ecx
cmovg eax, ecx
mov dword [0x18017945c], eax
mov rax, qword [0x1801792c0]
mov qword [rdi], rax
mov qword [0x1801792c0], rdi
jmp 0x180080a08
mov rcx, rdi
call qword [0x180175690]
mov ecx, dword [0x180179438]
sub ecx, eax
mov eax, dword [0x180179460]
cmp ecx, eax
mov dword [0x180179438], ecx
cmovg eax, ecx
mov rcx, rdi
mov dword [0x180179460], eax
call fcn.1800641a0
mov rcx, qword [0x180179280]
test rcx, rcx
je 0x180080a1a
call qword [0x1801756e8]
mov rdx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x78]
test rdx, rdx
je 0x180080b6a
add word [rdx + 0x2a], 0xffff
mov rbx, qword [rdx + 0x20]
jne 0x180080b00
mov rax, qword [rdx + 0x30]
dec dword [rax + 0x18]
test byte [rdx + 0x28], 2
mov rcx, qword [rdx + 0x30]
jne 0x180080a74
cmp dword [rcx + 0x28], 0
je 0x180080b00
cmp dword [rdx + 0x18], 1
jne 0x180080a62
xor eax, eax
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x40]
xor r8d, r8d
call qword [0x180175738]
jmp 0x180080b00
cmp qword [rcx + 0x10], rdx
jne 0x180080a96
mov rax, qword [rdx + 0x40]
test rax, rax
je 0x180080a92
test byte [rax + 0x28], 4
je 0x180080a92
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x180080a83
mov qword [rcx + 0x10], rax
mov r8, qword [rdx + 0x38]
mov rax, qword [rdx + 0x40]
test r8, r8
je 0x180080aa9
mov qword [r8 + 0x40], rax
jmp 0x180080aad
mov qword [rcx + 8], rax
mov r8, qword [rdx + 0x40]
mov rax, qword [rdx + 0x38]
test r8, r8
je 0x180080ac0
mov qword [r8 + 0x38], rax
jmp 0x180080ac3
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 0x180080ae1
mov qword [rcx + 0x40], rdx
cmp qword [rax + 8], 0
mov qword [rax], rdx
jne 0x180080aef
mov qword [rax + 8], rdx
cmp qword [rax + 0x10], 0
jne 0x180080b00
test byte [rdx + 0x28], 4
jne 0x180080b00
mov qword [rax + 0x10], rdx
mov rax, qword [rbx + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x180080b6a
movzx eax, byte [rbx + 0x12]
cmp al, 6
je 0x180080b62
test al, al
je 0x180080b62
cmp al, 2
jb 0x180080b52
mov rax, qword [0x180179480]
test rax, rax
je 0x180080b2b
call rax
mov rcx, rbx
call fcn.180070f00
mov r11, qword [0x180179488]
test r11, r11
je 0x180080b62
call r11
mov rcx, rbx
call fcn.18006d4d0
mov eax, dword [rsp + 0x50]
inc eax
jmp 0x180080b8e
cmp byte [rbx + 8], 0
jne 0x180080b62
xor edx, edx
mov rcx, rbx
call fcn.18006d620
mov rcx, rbx
call fcn.18006d4d0
mov eax, dword [rsp + 0x50]
inc eax
jmp 0x180080b8e
lea r8, str.unable_to_get_the_page._error_code_d
lea rdx, [rsp + 0xb0]
mov r9d, edi
mov rcx, rbp
call fcn.18007fae0
xor eax, eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800e9aa0
add rsp, 0x138
pop rdi
pop rsi
pop rbp
pop rbx
ret