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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x180176020]
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.1800661a0
mov rsi, qword [rbp]
mov qword [rsp + 0x40], rsi
mov eax, dword [rsi + 0x34]
mov dword [rsp + 0x3c], eax
test ebx, ebx
je 0x180080edc
mov r8, rdi
mov edx, ebx
mov rcx, rbp
call fcn.18007fee0
test eax, eax
jne 0x180080edc
mov rsi, qword [rsi]
mov edi, dword [rsi + 0x2c]
test edi, edi
jne 0x1800805c0
mov rcx, qword [rsi + 0xe0]
lea r9, [rsp + 0x70]
lea r8d, [rax + 1]
mov edx, ebx
call fcn.18006b310
mov edi, eax
test eax, eax
jne 0x1800805c0
mov rbx, qword [rsp + 0x70]
cmp qword [rbx + 0x20], 0
jne 0x1800805e2
mov ecx, dword [rsp + 0x30]
mov qword [rbx + 0x20], rsi
cmp ecx, 0x7fffffff
ja 0x18008056c
mov eax, dword [0x1801767d0]
movsxd r8, dword [rsi + 0xa0]
cdq
idiv r8d
inc eax
cmp ecx, eax
je 0x18008056c
cmp byte [rsi + 0x11], dil
jne 0x180080551
cmp dword [rsi + 0x1c], ecx
jb 0x180080551
mov rax, qword [rsi + 0x48]
cmp qword [rax], 0
je 0x180080551
mov rcx, rbx
call fcn.18006e650
mov edi, eax
test eax, eax
je 0x1800805e2
jmp 0x18008058c
cmp ecx, dword [rsi + 0xa4]
jbe 0x180080560
mov edi, 0xd
jmp 0x18008058c
mov rcx, qword [rbx]
xor edx, edx
call sub.MSVCR90.dll_memset
jmp 0x1800805e2
mov edi, 0xb
lea r9, [0x180138514]
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov ecx, edi
mov r8d, 0x989f
call fcn.1800663b0
test byte [rbx + 0x28], 2
je 0x18008059a
mov rcx, rbx
call fcn.18006b2a0
mov rcx, qword [rbx + 0x30]
dec dword [rcx + 0x18]
cmp dword [rbx + 0x18], 1
jne 0x1800805ad
xor eax, eax
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x40]
mov r8d, 1
mov rdx, rbx
call qword [0x180176738]
mov rax, qword [rsi + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x1800805d5
mov rcx, rsi
call fcn.18006db70
xor eax, eax
mov rbx, rax
test edi, edi
jne 0x180080ec2
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.180075f00
test eax, eax
je 0x18008064f
lea r8, str.btreeInitPage___returns_error_code__d
lea rdx, [rsp + 0xb0]
mov r9d, eax
mov rcx, rbp
call fcn.18007fe30
mov rcx, rdi
call fcn.1800764b0
jmp 0x180080edc
xor eax, eax
mov dword [rsp + 0x50], eax
mov esi, eax
cmp ax, word [rdi + 0x10]
jae 0x1800808cc
mov qword [rsp + 0x58], rax
jmp 0x180080674
mov ebx, dword [rsp + 0x30]
cmp dword [rbp + 0x20], 0
je 0x1800808cc
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.1800661a0
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.180075430
cmp byte [rdi + 2], 0
mov ecx, dword [rsp + 0x98]
mov dword [rsp + 0x38], ecx
jne 0x1800806fe
mov eax, dword [rsp + 0x90]
add ecx, eax
jmp 0x180080755
test esi, esi
jne 0x180080716
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rax
jmp 0x180080755
mov rbx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x48]
cmp rbx, rax
jg 0x18008074b
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.18007fe30
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 0x180080810
mov eax, dword [r9 + 0x34]
movzx r8d, word [rsp + 0xa4]
add rax, qword [rdi + 0x70]
add r8, rbx
cmp r8, rax
ja 0x180080810
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 0x1800807ec
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.18007ff50
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.180080010
mov r9, qword [rsp + 0x40]
cmp byte [rdi + 3], 0
jne 0x1800808b8
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 0x180080863
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.18007ff50
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.180080430
mov ebx, eax
test esi, esi
jle 0x1800808b4
mov eax, dword [rsp + 0x50]
cmp ebx, eax
je 0x1800808b4
lea r8, str.Child_page_depth_differs
lea rdx, [rsp + 0xb0]
mov rcx, rbp
call fcn.18007fe30
mov dword [rsp + 0x50], ebx
movzx eax, word [rdi + 0x10]
add qword [rsp + 0x58], 2
inc esi
cmp esi, eax
jl 0x180080670
cmp byte [rdi + 3], 0
jne 0x180080981
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.1800661a0
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x24], 0
je 0x18008094a
lea rax, [rsp + 0xb0]
mov r9d, esi
mov r8b, 5
mov edx, ebx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18007ff50
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.180080430
cmp byte [rdi + 3], 0
je 0x180080a48
cmp byte [rdi + 2], 0
je 0x180080a48
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x180080a15
mov rbx, qword [rsp + 0x60]
mov rax, qword [rsi]
test rbx, rbx
jne 0x1800809bc
mov r9, qword [rsp + 0x48]
cmp r9, rax
jle 0x180080a48
lea r8, str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
jmp 0x180080a33
mov r9, qword [rsp + 0x68]
cmp r9, rax
jg 0x1800809e2
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.18007fe30
mov rax, qword [rbx]
mov r9, qword [rsp + 0x48]
cmp r9, rax
jle 0x180080a0b
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.18007fe30
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
jmp 0x180080a48
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x180080a48
mov rax, qword [rax]
mov r9, qword [rsp + 0x68]
cmp r9, rax
jg 0x180080a48
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.18007fe30
movzx eax, byte [rdi + 5]
mov rcx, qword [0x18017a280]
mov rsi, qword [rdi + 0x70]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
mov ebx, dword [rax + 0x30]
test rcx, rcx
je 0x180080a6e
call qword [0x1801766d8]
mov ecx, ebx
call fcn.18006b9e0
mov rcx, qword [0x18017a280]
mov rdi, rax
test rcx, rcx
je 0x180080a8a
call qword [0x1801766e8]
test rdi, rdi
jne 0x180080a9b
mov dword [rbp + 0x28], 1
jmp 0x180080cc6
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 0x180080bf1
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 0x180080b70
movsxd rdx, ebx
mov rcx, r8
add rdx, rsi
call fcn.180075620
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x58]
movzx eax, ax
lea eax, [rax + rbx - 1]
cmp eax, dword [rsp + 0x3c]
jl 0x180080b9d
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.18007fe30
mov rdx, qword [rsp + 0x58]
jmp 0x180080bbb
cdqe
movsxd rcx, ebx
cmp rax, rcx
jl 0x180080bbb
nop word [rax + rax]
inc byte [rax + rdi]
dec rax
cmp rax, rcx
jge 0x180080bb0
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 0x180080b40
movsxd r10, dword [rsp + 0x34]
movzx r8d, byte [r10 + rsi + 1]
movzx eax, byte [r10 + rsi + 2]
shl r8d, 8
or r8d, eax
jle 0x180080c4e
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 0x180080c3b
nop
inc byte [rcx + rdi]
dec rcx
cmp rcx, rdx
jge 0x180080c30
movzx r8d, byte [rdx + rsi]
movzx eax, byte [rdx + rsi + 1]
shl r8d, 8
or r8d, eax
jg 0x180080c10
movsxd rdx, dword [rsp + 0x3c]
xor eax, eax
mov ebx, eax
mov r9d, eax
test rdx, rdx
jle 0x180080c9c
nop
movzx ecx, byte [rax + rdi]
test cl, cl
jne 0x180080c6c
inc ebx
jmp 0x180080c71
cmp cl, 1
jg 0x180080c7e
inc rax
inc r9d
cmp rax, rdx
jl 0x180080c60
jmp 0x180080c9c
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.18007fe30
movsxd r10, dword [rsp + 0x34]
movzx eax, byte [r10 + rsi + 7]
cmp ebx, eax
je 0x180080cc6
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.18007fe30
mov rcx, qword [0x18017a280]
test rcx, rcx
je 0x180080cdf
call qword [0x1801766d8]
mov rcx, qword [0x18017a280]
test rdi, rdi
je 0x180080d5f
cmp rdi, qword [0x18017a2b0]
jb 0x180080d28
cmp rdi, qword [0x18017a2b8]
jae 0x180080d28
mov eax, dword [0x18017a45c]
mov ecx, dword [0x18017a434]
dec ecx
cmp ecx, eax
mov dword [0x18017a434], ecx
cmovg eax, ecx
mov dword [0x18017a45c], eax
mov rax, qword [0x18017a2c0]
mov qword [rdi], rax
mov qword [0x18017a2c0], rdi
jmp 0x180080d58
mov rcx, rdi
call qword [0x180176690]
mov ecx, dword [0x18017a438]
sub ecx, eax
mov eax, dword [0x18017a460]
cmp ecx, eax
mov dword [0x18017a438], ecx
cmovg eax, ecx
mov rcx, rdi
mov dword [0x18017a460], eax
call fcn.1800644f0
mov rcx, qword [0x18017a280]
test rcx, rcx
je 0x180080d6a
call qword [0x1801766e8]
mov rdx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x78]
test rdx, rdx
je 0x180080eba
add word [rdx + 0x2a], 0xffff
mov rbx, qword [rdx + 0x20]
jne 0x180080e50
mov rax, qword [rdx + 0x30]
dec dword [rax + 0x18]
test byte [rdx + 0x28], 2
mov rcx, qword [rdx + 0x30]
jne 0x180080dc4
cmp dword [rcx + 0x28], 0
je 0x180080e50
cmp dword [rdx + 0x18], 1
jne 0x180080db2
xor eax, eax
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x40]
xor r8d, r8d
call qword [0x180176738]
jmp 0x180080e50
cmp qword [rcx + 0x10], rdx
jne 0x180080de6
mov rax, qword [rdx + 0x40]
test rax, rax
je 0x180080de2
test byte [rax + 0x28], 4
je 0x180080de2
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x180080dd3
mov qword [rcx + 0x10], rax
mov r8, qword [rdx + 0x38]
mov rax, qword [rdx + 0x40]
test r8, r8
je 0x180080df9
mov qword [r8 + 0x40], rax
jmp 0x180080dfd
mov qword [rcx + 8], rax
mov r8, qword [rdx + 0x40]
mov rax, qword [rdx + 0x38]
test r8, r8
je 0x180080e10
mov qword [r8 + 0x38], rax
jmp 0x180080e13
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 0x180080e31
mov qword [rcx + 0x40], rdx
cmp qword [rax + 8], 0
mov qword [rax], rdx
jne 0x180080e3f
mov qword [rax + 8], rdx
cmp qword [rax + 0x10], 0
jne 0x180080e50
test byte [rdx + 0x28], 4
jne 0x180080e50
mov qword [rax + 0x10], rdx
mov rax, qword [rbx + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x180080eba
movzx eax, byte [rbx + 0x12]
cmp al, 6
je 0x180080eb2
test al, al
je 0x180080eb2
cmp al, 2
jb 0x180080ea2
mov rax, qword [0x18017a480]
test rax, rax
je 0x180080e7b
call rax
mov rcx, rbx
call fcn.180071250
mov r11, qword [0x18017a488]
test r11, r11
je 0x180080eb2
call r11
mov rcx, rbx
call fcn.18006d820
mov eax, dword [rsp + 0x50]
inc eax
jmp 0x180080ede
cmp byte [rbx + 8], 0
jne 0x180080eb2
xor edx, edx
mov rcx, rbx
call fcn.18006d970
mov rcx, rbx
call fcn.18006d820
mov eax, dword [rsp + 0x50]
inc eax
jmp 0x180080ede
lea r8, str.unable_to_get_the_page._error_code_d
lea rdx, [rsp + 0xb0]
mov r9d, edi
mov rcx, rbp
call fcn.18007fe30
xor eax, eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800e9d70
add rsp, 0x138
pop rdi
pop rsi
pop rbp
pop rbx
ret