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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x18014f0c0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rax, qword [rcx + 0x30]
xor r12d, r12d
mov qword [rsp + 0x88], rax
mov ebp, 1
mov eax, dword [rcx + 0x3c]
mov r10d, edx
mov dword [rsp + 0x68], eax
mov rsi, rcx
mov eax, dword [rcx + 0x40]
mov ebx, r12d
mov qword [rsp + 0x80], r8
mov r8, qword [rcx + 0x70]
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0xb0], r9
mov dword [rsp + 0x34], edx
mov eax, dword [r8 + 0x198]
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x3c], ebp
test eax, eax
je 0x18003d624
inc dword [rcx + 0x20]
mov dword [rcx + 0x24], 9
mov dword [rcx + 0x1c], r12d
cmp qword [r8 + 0x210], rbx
je 0x18003d665
inc dword [rcx + 0x28]
xor edx, edx
mov eax, dword [rcx + 0x28]
div dword [r8 + 0x220]
test edx, edx
jne 0x18003d665
mov rcx, qword [r8 + 0x218]
call qword [r8 + 0x210]
mov r10d, dword [rsp + 0x34]
test eax, eax
je 0x18003d665
inc dword [rsi + 0x20]
mov dword [rsi + 0x24], 9
mov dword [rsi + 0x1c], r12d
cmp dword [rsi + 0x1c], ebx
je 0x18003ddd9
mov r15, qword [rsi]
mov qword [rsp + 0x78], r15
mov eax, dword [r15 + 0x38]
mov dword [rsp + 0x30], eax
test r10d, r10d
je 0x18003de37
cmp r10d, dword [rsi + 0x18]
ja 0x18003de25
mov r9d, r10d
mov eax, r10d
shr r9, 3
and eax, 7
add r9, qword [rsi + 0x10]
movzx ecx, byte [r9]
bt ecx, eax
jae 0x18003d6c4
lea rdx, str.2nd_reference_to_page__u
mov r8d, r10d
mov rcx, rsi
call fcn.18003d0e0
xor eax, eax
jmp 0x18003ddf9
bts ecx, eax
mov edx, r10d
mov byte [r9], cl
lea rax, str.Tree__u_page__u:
mov qword [rsi + 0x30], rax
lea r8, [rsp + 0xa8]
mov dword [rsi + 0x3c], r10d
xor r9d, r9d
mov rax, qword [r15]
mov rcx, rax
call qword [rax + VarUI4FromDisp]
mov edi, eax
test eax, eax
je 0x18003d723
mov r8d, eax
lea rdx, str.unable_to_get_the_page._error_code_d
mov rcx, rsi
call fcn.18003d0e0
cmp edi, 0xc0a
jne 0x18003ddd9
mov dword [rsi + 0x24], 7
jmp 0x18003ddd9
mov rcx, qword [rsp + 0xa8]
mov edx, dword [rsp + 0x34]
mov qword [rsp + 0xc8], r13
mov r13, qword [rcx + 0x10]
cmp edx, dword [r13 + 4]
je 0x18003d766
mov rax, qword [rcx + 8]
cmp edx, ebp
mov qword [r13 + 0x50], rax
mov eax, r12d
mov qword [r13 + 0x70], rcx
mov ecx, 0x64
cmove eax, ecx
mov qword [r13 + 0x48], r15
mov byte [r13 + 9], al
mov dword [r13 + 4], edx
movzx eax, byte [r13]
mov rcx, r13
mov byte [rsp + 0x38], al
mov byte [r13], bl
call fcn.180030980
test eax, eax
je 0x18003d796
mov r8d, eax
lea rdx, str.btreeInitPage___returns_error_code__d
mov rcx, rsi
call fcn.18003d0e0
jmp 0x18003dd80
mov rcx, r13
call fcn.180030740
test eax, eax
je 0x18003d7b9
mov r8d, eax
lea rdx, str.free_space_corruption
mov rcx, rsi
call fcn.18003d0e0
jmp 0x18003dd80
movzx edx, byte [r13 + 9]
lea rax, str.Tree__u_page__u_cell__u:
mov r9, qword [r13 + 0x50]
mov edi, edx
mov qword [rsi + 0x30], rax
mov qword [rsp + 0x58], r9
mov dword [rsp + 0x64], edx
movzx eax, byte [rdx + r9 + 6]
movzx ecx, byte [rdx + r9 + 5]
movzx r8d, byte [rdx + r9 + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + r9 + 3]
dec ecx
shl eax, 8
or r8d, eax
movzx r10d, cx
inc r10d
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x48], r10d
cmp byte [r13 + 8], bl
jne 0x18003d81a
cmp byte [r13 + 1], bl
jne 0x18003d821
mov eax, r8d
add qword [rsi + 0x78], rax
movzx ecx, byte [r13 + 8]
mov eax, 3
sub eax, ecx
lea eax, [rdx + rax*4]
mov dword [rsp + 0x60], eax
lea eax, [rax + r8*2]
add eax, 0xfffffffe
movsxd rdx, eax
add rdx, r9
mov qword [rsp + 0x70], rdx
test cl, cl
jne 0x18003d8b0
mov edi, dword [rdi + r9 + 8]
bswap edi
cmp byte [r15 + 0x21], bl
je 0x18003d874
mov r9d, dword [rsp + 0x34]
lea rax, str.Tree__u_page__u_right_child:
mov r8b, 5
mov qword [rsi + 0x30], rax
mov edx, edi
mov rcx, rsi
call fcn.18003d210
mov r9, qword [rsp + 0xb0]
lea r8, [rsp + 0xb0]
mov edx, edi
mov rcx, rsi
call fcn.18003d590
mov rdx, qword [rsp + 0x70]
mov ebp, r12d
mov r8d, dword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
mov r10d, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], r12d
jmp 0x18003d8b7
mov rbx, qword [rsi + 0x68]
mov dword [rbx], r12d
lea r14d, [r8 - 1]
mov dword [rsp + 0x4c], r14d
test r14d, r14d
js 0x18003d974
mov r15d, dword [rsp + 0x30]
nop
cmp dword [rsi + 0x1c], r12d
je 0x18003d96f
mov dword [rsi + 0x40], r14d
movzx eax, word [rdx]
sub rdx, 2
ror ax, 8
movzx edi, ax
mov qword [rsp + 0x70], rdx
cmp edi, r10d
jb 0x18003dcfa
lea eax, [r15 - 4]
cmp edi, eax
ja 0x18003dcfa
lea r15, [r9 + rdi]
mov rcx, r13
mov rdx, r15
lea r8, [rsp + 0x90]
call qword [r13 + 0x80]
movzx r9d, word [rsp + 0xa6]
mov edx, dword [rsp + 0x30]
lea eax, [rdi + r9]
cmp eax, edx
jbe 0x18003db69
lea rdx, str.Extends_off_end_of_page
mov rcx, rsi
call fcn.18003d0e0
mov dword [rsp + 0x44], r12d
mov r15d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x70]
sub r14d, 1
mov r9, qword [rsp + 0x58]
mov r10d, dword [rsp + 0x48]
mov dword [rsp + 0x4c], r14d
jns 0x18003d8d0
mov r8d, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xb0]
mov qword [rcx], rax
mov qword [rsi + 0x30], r12
cmp dword [rsp + 0x44], r12d
je 0x18003dd77
cmp dword [rsi + 0x1c], r12d
jle 0x18003dd80
mov r15, qword [rsp + 0x58]
cmp byte [r13 + 8], r12b
jne 0x18003da3b
mov rbx, qword [rsi + 0x68]
mov ebp, r8d
sub rbp, 1
mov dword [rbx], r12d
js 0x18003da3b
movsxd rax, dword [rsp + 0x60]
lea r14, [rax + rbp*2]
add r14, r15
nop dword [rax + rax]
movzx eax, word [r14]
mov rcx, r13
ror ax, 8
movzx edi, ax
lea rdx, [r15 + rdi]
call qword [r13 + 0x78]
inc dword [rbx]
lea ecx, [rdi - 1]
mov r8d, dword [rbx]
shl edi, 0x10
movzx eax, ax
add ecx, eax
or ecx, edi
mov dword [rbx + r8*4], ecx
mov ecx, r8d
shr ecx, 1
je 0x18003da31
nop dword [rax]
nop word [rax + rax]
mov eax, r8d
lea rdx, [rbx + rcx*4]
mov r8d, dword [rdx]
mov r9d, dword [rbx + rax*4]
cmp r8d, r9d
jbe 0x18003da31
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x18003da10
sub r14, 2
sub rbp, 1
jns 0x18003d9d0
mov r14d, dword [rsp + 0x64]
movzx eax, r14b
movzx ecx, byte [rax + r15 + 1]
movzx r10d, byte [rax + r15 + 2]
shl ecx, 8
or r10d, ecx
jbe 0x18003dac7
nop dword [rax + rax]
movzx eax, byte [r10 + r15 + 3]
movzx edx, byte [r10 + r15 + 2]
inc dword [rbx]
mov r8d, dword [rbx]
shl edx, 8
mov ecx, r8d
or edx, eax
mov eax, r10d
dec edx
shl eax, 0x10
add edx, r10d
or edx, eax
shr ecx, 1
mov dword [rbx + r8*4], edx
je 0x18003dab1
nop
mov eax, r8d
lea rdx, [rbx + rcx*4]
mov r8d, dword [rdx]
mov r9d, dword [rbx + rax*4]
cmp r8d, r9d
jbe 0x18003dab1
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x18003da90
mov eax, r10d
movzx r10d, byte [r10 + r15 + 1]
movzx ecx, byte [rax + r15]
shl ecx, 8
or r10d, ecx
ja 0x18003da60
mov edi, dword [rsp + 0x48]
dec edi
nop dword [rax]
mov eax, dword [rbx]
test eax, eax
je 0x18003dd39
mov r10d, dword [rbx + 4]
lea rcx, [rbx + rax*4]
mov eax, dword [rbx + rax*4]
mov r8d, 2
mov dword [rbx + 4], eax
mov r9d, 1
mov dword [rcx], 0xffffffff
dec dword [rbx]
cmp dword [rbx], r8d
jb 0x18003db45
nop dword [rax]
nop word [rax + rax]
mov ecx, r8d
lea edx, [r8 + 1]
mov eax, dword [rbx + rdx*4]
cmp dword [rbx + rcx*4], eax
mov eax, r9d
cmovbe edx, r8d
mov ecx, edx
mov edx, dword [rbx + rax*4]
mov r8d, dword [rbx + rcx*4]
cmp edx, r8d
jb 0x18003db45
mov dword [rbx + rax*4], r8d
mov r9d, ecx
lea r8d, [rcx + rcx]
mov dword [rbx + rcx*4], edx
cmp r8d, dword [rbx]
jbe 0x18003db10
mov r8d, r10d
movzx eax, di
shr r8d, 0x10
cmp eax, r8d
jae 0x18003dd21
sub r8d, eax
dec r12d
add r12d, r8d
mov edi, r10d
jmp 0x18003dad0
cmp byte [r13 + 1], r12b
je 0x18003dbd1
mov rax, qword [rsp + 0x90]
mov ecx, r12d
test ebp, ebp
je 0x18003db8b
cmp rax, qword [rsp + 0xb0]
setg cl
jmp 0x18003db96
cmp rax, qword [rsp + 0xb0]
setge cl
test ecx, ecx
je 0x18003dbc1
mov r8, rax
lea rdx, str.Rowid__lld_out_of_order
mov rcx, rsi
call fcn.18003d0e0
movzx r9d, word [rsp + 0xa6]
mov rax, qword [rsp + 0x90]
mov edx, dword [rsp + 0x30]
mov qword [rsp + 0xb0], rax
mov ebp, r12d
mov dword [rsp + 0x3c], r12d
movzx ecx, word [rsp + 0xa4]
mov eax, dword [rsp + 0xa0]
cmp eax, ecx
jbe 0x18003dc3f
sub eax, ecx
lea ecx, [rdx - 4]
add eax, 0xfffffffb
add eax, edx
xor edx, edx
div ecx
movzx ecx, r9w
mov r14d, eax
mov rax, qword [rsp + 0x78]
mov ebp, dword [rcx + r15 - 4]
bswap ebp
cmp byte [rax + 0x21], r12b
je 0x18003dc1d
mov r9d, dword [rsp + 0x34]
mov r8b, 3
mov edx, ebp
mov rcx, rsi
call fcn.18003d210
mov r9d, r14d
mov r8d, ebp
xor edx, edx
mov rcx, rsi
call fcn.18003d2d0
movzx r9d, word [rsp + 0xa6]
mov ebp, dword [rsp + 0x3c]
mov r14d, dword [rsp + 0x4c]
cmp byte [r13 + 8], r12b
jne 0x18003dcad
mov rax, qword [rsp + 0x78]
mov edi, dword [r15]
bswap edi
cmp byte [rax + 0x21], r12b
je 0x18003dc67
mov r9d, dword [rsp + 0x34]
mov r8b, 5
mov edx, edi
mov rcx, rsi
call fcn.18003d210
mov r9, qword [rsp + 0xb0]
lea r8, [rsp + 0xb0]
mov edx, edi
mov rcx, rsi
call fcn.18003d590
mov edi, eax
mov ebp, r12d
mov dword [rsp + 0x3c], r12d
cmp eax, dword [rsp + 0x40]
je 0x18003d94c
lea rdx, str.Child_page_depth_differs
mov rcx, rsi
call fcn.18003d0e0
mov dword [rsp + 0x40], edi
jmp 0x18003d94c
inc dword [rbx]
mov r8d, dword [rbx]
movzx ecx, r9w
dec ecx
add ecx, edi
shl edi, 0x10
or ecx, edi
mov dword [rbx + r8*4], ecx
mov ecx, r8d
shr ecx, 1
je 0x18003d94c
nop
mov eax, r8d
lea rdx, [rbx + rcx*4]
mov r8d, dword [rdx]
mov r9d, dword [rbx + rax*4]
cmp r8d, r9d
jbe 0x18003d94c
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x18003dcd0
jmp 0x18003d94c
lea eax, [r15 - 4]
mov r9d, r10d
mov r8d, edi
mov dword [rsp + 0x20], eax
lea rdx, str.Offset__u_out_of_range__u.._u
mov rcx, rsi
call fcn.18003d0e0
mov dword [rsp + 0x44], r12d
jmp 0x18003d951
mov ebp, dword [rsp + 0x34]
lea rdx, str.Multiple_uses_for_byte__u_of_page__u
mov r9d, ebp
mov rcx, rsi
call fcn.18003d0e0
jmp 0x18003dd3d
mov ebp, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
movzx eax, di
sub r8d, eax
dec r8d
add r8d, r12d
cmp dword [rbx], 0
jne 0x18003dd80
movzx eax, r14b
movzx r9d, byte [rax + r15 + 7]
cmp r8d, r9d
je 0x18003dd80
lea rdx, str.Fragmentation_of__u_bytes_reported_as__u_on_page__u
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call fcn.18003d0e0
jmp 0x18003dd80
movzx eax, byte [rsp + 0x38]
mov byte [r13], al
test r13, r13
je 0x18003ddd1
mov r8, qword [r13 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x18003de1b
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
imul rdx, qword [r10 + 0xc8]
mov r9, qword [rcx]
call qword [r9 + 0x90]
mov r13, qword [rsp + 0xc8]
mov rax, qword [rsp + 0x88]
mov qword [rsi + 0x30], rax
mov eax, dword [rsp + 0x68]
mov dword [rsi + 0x3c], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsi + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1800f0be0
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, r8
call fcn.180022740
jmp 0x18003ddd1
lea rdx, str.invalid_page_number__u
mov r8d, r10d
mov rcx, rsi
call fcn.18003d0e0
xor eax, eax
jmp 0x18003ddf9