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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [rcx + 0x28]
mov edi, 1
mov r14, qword [rcx]
xor r12d, r12d
mov qword [rsp + 0xa0], rax
mov ebp, edx
mov eax, dword [rcx + 0x30]
mov rsi, rcx
mov dword [rsp + 0x5c], eax
mov r15d, edi
mov eax, dword [rcx + 0x34]
mov ebx, r12d
mov dword [rsp + 0x60], eax
mov eax, dword [r14 + 0x34]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x70], r14
test edx, edx
je 0x140038e41
call fcn.1400381f0
test eax, eax
jne 0x140038e41
lea rax, str.Page__d:
mov dword [rsi + 0x30], ebp
mov qword [rsi + 0x28], rax
lea r8, [rsp + 0x90]
mov rax, qword [r14]
xor r9d, r9d
mov edx, ebp
mov rcx, rax
call qword [rax + 0x108]
test eax, eax
je 0x140038703
mov r8d, eax
lea rdx, str.unable_to_get_the_page._error_code_d
mov rcx, rsi
call fcn.140038130
jmp 0x140038e1f
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0xb8], r13
mov r13, qword [rcx + 0x10]
cmp ebp, dword [r13 + 4]
je 0x140038742
mov rax, qword [rcx + 8]
cmp ebp, edi
mov qword [r13 + 0x50], rax
mov eax, r12d
mov qword [r13 + 0x70], rcx
mov ecx, 0x64
cmove eax, ecx
mov qword [r13 + 0x48], r14
mov byte [r13 + 9], al
mov dword [r13 + 4], ebp
movzx eax, byte [r13]
mov rcx, r13
mov byte [rsp + 0x100], al
mov byte [r13], bl
call fcn.14002d400
test eax, eax
je 0x140038775
mov r8d, eax
lea rdx, str.btreeInitPage___returns_error_code__d
mov rcx, rsi
call fcn.140038130
jmp 0x140038dc2
mov rcx, r13
call fcn.14002d1b0
test eax, eax
je 0x140038798
mov r8d, eax
lea rdx, str.free_space_corruption
mov rcx, rsi
call fcn.140038130
jmp 0x140038dc2
mov r10, qword [r13 + 0x50]
lea rax, str.On_tree_page__d_cell__d:
movzx r8d, byte [r13 + 9]
mov qword [rsi + 0x28], rax
movzx edx, byte [r13 + 8]
mov qword [rsp + 0x48], r10
movzx ecx, byte [r8 + r10 + 5]
movzx eax, byte [r8 + r10 + 6]
movzx ebp, byte [r8 + r10 + 3]
shl ecx, 8
or ecx, eax
shl ebp, 8
movzx eax, byte [r8 + r10 + 4]
dec ecx
movzx r9d, cx
or ebp, eax
mov ecx, 3
mov dword [rsp + 0x58], r9d
sub ecx, edx
mov qword [rsp + 0x98], r8
inc r9d
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x44], r9d
lea eax, [r8 + rcx*4]
mov dword [rsp + 0x54], eax
lea eax, [rax + rbp*2]
add eax, 0xfffffffe
movsxd rcx, eax
add rcx, r10
mov qword [rsp + 0x68], rcx
test dl, dl
jne 0x1400388a7
movzx eax, byte [r8 + r10 + 0xa]
movzx edi, byte [r8 + r10 + 9]
shl edi, 8
or edi, eax
movzx eax, byte [r8 + r10 + 8]
shl eax, 0x18
shl edi, 8
or edi, eax
movzx eax, byte [r8 + r10 + 0xb]
or edi, eax
cmp byte [r14 + 0x21], bl
je 0x14003886c
mov r9d, dword [rsp + 0x108]
lea rax, str.On_page__d_at_right_child:
mov r8b, 5
mov qword [rsi + 0x28], rax
mov edx, edi
mov rcx, rsi
call fcn.140038260
mov r9, qword [rsp + 0x118]
lea r8, [rsp + 0x118]
mov edx, edi
mov rcx, rsi
call fcn.140038640
mov rcx, qword [rsp + 0x68]
mov r15d, r12d
mov r9d, dword [rsp + 0x44]
mov r10, qword [rsp + 0x48]
mov edi, dword [rsp + 0x34]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], r12d
jmp 0x1400388ae
mov rbx, qword [rsi + 0x58]
mov dword [rbx], r12d
lea eax, [rbp - 1]
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140038ae0
mov r14d, dword [rsp + 0x30]
cmp dword [rsi + 0x1c], r12d
je 0x140038adc
mov dword [rsi + 0x34], eax
lea ebp, [r14 - 4]
movzx edi, byte [rcx]
movzx eax, byte [rcx + 1]
sub rcx, 2
shl edi, 8
or edi, eax
mov qword [rsp + 0x68], rcx
cmp edi, r9d
jb 0x140038d2a
cmp edi, ebp
ja 0x140038d2a
mov r14d, edi
lea r8, [rsp + 0x78]
add r14, r10
mov rcx, r13
mov rdx, r14
call qword [r13 + Ordinal_133]
movzx r9d, word [rsp + 0x8e]
mov edx, dword [rsp + 0x30]
lea eax, [rdi + r9]
cmp eax, edx
jbe 0x140038942
lea rdx, str.Extends_off_end_of_page
mov rcx, rsi
call fcn.140038130
mov edi, r12d
mov dword [rsp + 0x34], r12d
jmp 0x140038ab7
cmp byte [r13 + 2], r12b
je 0x1400389a5
mov rax, qword [rsp + 0x78]
mov ecx, r12d
test r15d, r15d
je 0x140038962
cmp rax, qword [rsp + 0x118]
setg cl
jmp 0x14003896d
cmp rax, qword [rsp + 0x118]
setge cl
test ecx, ecx
je 0x140038995
mov r8, rax
lea rdx, str.Rowid__lld_out_of_order
mov rcx, rsi
call fcn.140038130
movzx r9d, word [rsp + 0x8e]
mov rax, qword [rsp + 0x78]
mov edx, dword [rsp + 0x30]
mov qword [rsp + 0x118], rax
mov r15d, r12d
mov dword [rsp + 0x38], r12d
movzx ecx, word [rsp + 0x8c]
mov eax, dword [rsp + 0x88]
cmp eax, ecx
jbe 0x140038a2a
sub eax, ecx
add eax, 0xfffffffb
add eax, edx
xor edx, edx
div ebp
movzx edx, r9w
add rdx, r14
mov r15d, eax
mov rax, qword [rsp + 0x70]
movzx ecx, byte [rdx - 2]
movzx ebp, byte [rdx - 3]
shl ebp, 8
or ebp, ecx
movzx ecx, byte [rdx - 4]
shl ebp, 8
shl ecx, 0x18
or ebp, ecx
movzx ecx, byte [rdx - 1]
or ebp, ecx
cmp byte [rax + 0x21], r12b
je 0x140038a0c
mov r9d, dword [rsp + 0x108]
mov r8b, 3
mov edx, ebp
mov rcx, rsi
call fcn.140038260
mov r9d, r15d
mov r8d, ebp
xor edx, edx
mov rcx, rsi
call fcn.140038310
movzx r9d, word [rsp + 0x8e]
mov r15d, dword [rsp + 0x38]
cmp byte [r13 + 8], r12b
jne 0x140038cd9
movzx eax, byte [r14 + 2]
movzx edi, byte [r14 + 1]
shl edi, 8
or edi, eax
movzx eax, byte [r14]
shl eax, 0x18
shl edi, 8
or edi, eax
movzx eax, byte [r14 + 3]
or edi, eax
mov rax, qword [rsp + 0x70]
cmp byte [rax + 0x21], r12b
je 0x140038a76
mov r9d, dword [rsp + 0x108]
mov r8b, 5
mov edx, edi
mov rcx, rsi
call fcn.140038260
mov r9, qword [rsp + 0x118]
lea r8, [rsp + 0x118]
mov edx, edi
mov rcx, rsi
call fcn.140038640
mov edi, eax
mov r15d, r12d
mov dword [rsp + 0x38], r12d
cmp eax, dword [rsp + 0x3c]
je 0x140038ab3
lea rdx, str.Child_page_depth_differs
mov rcx, rsi
call fcn.140038130
mov dword [rsp + 0x3c], edi
mov edi, dword [rsp + 0x34]
mov r14d, dword [rsp + 0x30]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
sub eax, 1
mov r9d, dword [rsp + 0x44]
mov r10, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
jns 0x1400388c2
mov ebp, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x110]
mov rax, qword [rsp + 0x118]
mov qword [rcx], rax
mov qword [rsi + 0x28], r12
test edi, edi
je 0x140038db6
cmp dword [rsi + 0x1c], r12d
jle 0x140038dc2
mov r15, qword [rsp + 0x48]
cmp byte [r13 + 8], r12b
jne 0x140038bab
mov rbx, qword [rsi + 0x58]
mov r14d, ebp
sub r14, 1
mov dword [rbx], r12d
js 0x140038bab
movsxd rax, dword [rsp + 0x54]
lea rbp, [rax + r14*2]
add rbp, r15
nop dword [rax + rax]
movzx edi, byte [rbp]
mov rcx, r13
movzx eax, byte [rbp + 1]
shl edi, 8
or edi, eax
mov edx, edi
add rdx, r15
call qword [r13 + Ordinal_122]
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 0x140038ba1
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 0x140038ba1
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x140038b80
sub rbp, 2
sub r14, 1
jns 0x140038b40
mov r14, qword [rsp + 0x98]
movzx eax, byte [r14 + r15 + 1]
movzx r8d, byte [r14 + r15 + 2]
shl eax, 8
or r8d, eax
jbe 0x140038c34
nop word [rax + rax]
movzx edx, byte [r15 + r8 + 2]
movzx eax, byte [r15 + r8 + 3]
inc dword [rbx]
shl edx, 8
or edx, eax
mov r10d, r8d
dec edx
add edx, r8d
shl r8d, 0x10
or edx, r8d
mov r8d, dword [rbx]
mov ecx, r8d
shr ecx, 1
mov dword [rbx + r8*4], edx
je 0x140038c21
mov eax, r8d
lea rdx, [rbx + rcx*4]
mov r8d, dword [rdx]
mov r9d, dword [rbx + rax*4]
cmp r8d, r9d
jbe 0x140038c21
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x140038c00
movzx eax, byte [r10 + r15]
movzx r8d, byte [r10 + r15 + 1]
shl eax, 8
or r8d, eax
ja 0x140038bd0
mov ebp, dword [rsp + 0x58]
nop dword [rax + rax]
mov eax, dword [rbx]
test eax, eax
je 0x140038d7e
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 0x140038cb5
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 0x140038cb5
mov dword [rbx + rax*4], r8d
mov r9d, ecx
lea r8d, [rcx + rcx]
mov dword [rbx + rcx*4], edx
cmp r8d, dword [rbx]
jbe 0x140038c80
mov r8d, r10d
movzx eax, bp
shr r8d, 0x10
cmp eax, r8d
jae 0x140038d4d
sub r8d, eax
dec r12d
add r12d, r8d
mov ebp, r10d
jmp 0x140038c40
inc dword [rbx]
lea ecx, [rdi - 1]
mov r8d, dword [rbx]
shl edi, 0x10
movzx eax, r9w
add ecx, eax
or ecx, edi
mov dword [rbx + r8*4], ecx
mov ecx, r8d
shr ecx, 1
je 0x140038ab3
nop dword [rax + rax]
mov eax, r8d
lea rdx, [rbx + rcx*4]
mov r8d, dword [rdx]
mov r9d, dword [rbx + rax*4]
cmp r8d, r9d
jbe 0x140038ab3
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x140038d00
jmp 0x140038ab3
mov r8d, edi
mov dword [rsp + 0x20], ebp
lea rdx, str.Offset__d_out_of_range__d.._d
mov rcx, rsi
call fcn.140038130
mov edi, r12d
mov dword [rsp + 0x34], r12d
jmp 0x140038abc
mov edi, dword [rsp + 0x108]
lea rdx, str.Multiple_uses_for_byte__u_of_page__d
mov r9d, edi
mov rcx, rsi
call fcn.140038130
mov r8d, dword [rsp + 0x30]
movzx eax, bp
sub r8d, eax
dec r8d
add r8d, r12d
cmp dword [rbx], 0
jne 0x140038dc2
jmp 0x140038d96
mov ecx, dword [rsp + 0x30]
lea r8d, [r12 - 1]
mov edi, dword [rsp + 0x108]
movzx eax, bp
sub ecx, eax
add r8d, ecx
movzx r9d, byte [r14 + r15 + 7]
cmp r8d, r9d
je 0x140038dc2
lea rdx, str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
mov dword [rsp + 0x20], edi
mov rcx, rsi
call fcn.140038130
jmp 0x140038dc2
movzx eax, byte [rsp + 0x100]
mov byte [r13], al
mov r8, qword [r13 + 0x70]
mov r13, qword [rsp + 0xb8]
test byte [r8 + 0x34], 0x20
je 0x140038e17
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + Ordinal_145]
jmp 0x140038e1f
mov rcx, r8
call fcn.140020d40
mov rax, qword [rsp + 0xa0]
mov qword [rsi + 0x28], rax
mov eax, dword [rsp + 0x5c]
mov dword [rsi + 0x30], eax
mov eax, dword [rsp + 0x60]
mov dword [rsi + 0x34], eax
mov eax, dword [rsp + 0x3c]
inc eax
jmp 0x140038e43
xor eax, eax
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret