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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xe8
mov rax, qword [0x140188020]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx + 0x30]
xor r12d, r12d
mov qword [rsp + 0x98], rax
mov edi, 1
mov eax, dword [rcx + 0x3c]
mov rsi, rcx
mov dword [rsp + 0x64], eax
mov r13d, edi
mov eax, dword [rcx + 0x40]
mov ebx, r12d
mov qword [rsp + 0x88], r8
mov r8, qword [rcx + 0x70]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0xc0], r9
mov ebp, edx
mov eax, dword [r8 + 0x198]
mov dword [rsp + 0x3c], ebp
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x34], edi
test eax, eax
je 0x14005034c
inc dword [rcx + 0x20]
mov dword [rcx + 0x24], 9
mov dword [rcx + 0x1c], r12d
cmp qword [r8 + 0x210], rbx
je 0x140050388
inc dword [rcx + 0x28]
xor edx, edx
mov eax, dword [rcx + 0x28]
div dword [r8 + 0x220]
test edx, edx
jne 0x140050388
mov rcx, qword [r8 + 0x218]
call qword [r8 + 0x210]
test eax, eax
je 0x140050388
inc dword [rsi + 0x20]
mov dword [rsi + 0x24], 9
mov dword [rsi + 0x1c], r12d
mov qword [rsp + 0xd8], r15
cmp dword [rsi + 0x1c], ebx
je 0x140050430
mov r15, qword [rsi]
mov qword [rsp + 0x80], r15
mov eax, dword [r15 + 0x38]
mov dword [rsp + 0x30], eax
test ebp, ebp
je 0x140050b3c
cmp ebp, dword [rsi + 0x18]
ja 0x140050b2a
mov rdx, rbp
mov eax, ebp
shr rdx, 3
and eax, 7
add rdx, qword [rsi + 0x10]
movzx ecx, byte [rdx]
bt ecx, eax
jae 0x1400503eb
lea rdx, str.2nd_reference_to_page__u
mov r8d, ebp
mov rcx, rsi
call fcn.14004fe10
xor eax, eax
jmp 0x140050450
bts ecx, eax
xor r9d, r9d
mov byte [rdx], cl
lea rax, str.Tree__u_page__u:
mov qword [rsi + 0x30], rax
lea r8, [rsp + 0xb8]
mov dword [rsi + 0x3c], ebp
mov edx, ebp
mov dword [rsi + 0x38], ebp
mov rax, qword [r15]
mov rcx, rax
call qword [rax + 0x110]
test eax, eax
je 0x140050478
mov r8d, eax
lea rdx, str.unable_to_get_the_page._error_code_d
mov rcx, rsi
call fcn.14004fe10
mov rax, qword [rsp + 0x98]
mov qword [rsi + 0x30], rax
mov eax, dword [rsp + 0x64]
mov dword [rsi + 0x3c], eax
mov eax, dword [rsp + 0x68]
mov dword [rsi + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
mov r15, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14012b8f0
add rsp, 0xe8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xe0], r14
mov r14, qword [rcx + 0x10]
mov qword [rsp + 0x78], r14
cmp ebp, dword [r14 + 4]
je 0x1400504bc
mov rax, qword [rcx + 8]
cmp ebp, edi
mov qword [r14 + 0x50], rax
mov eax, r12d
mov qword [r14 + 0x70], rcx
mov ecx, 0x64
cmove eax, ecx
mov qword [r14 + 0x48], r15
mov byte [r14 + 9], al
mov dword [r14 + 4], ebp
movzx eax, byte [r14]
mov rcx, r14
mov byte [rsp + 0x38], al
mov byte [r14], bl
call fcn.140044210
test eax, eax
je 0x1400504ea
mov r8d, eax
lea rdx, str.btreeInitPage___returns_error_code__d
mov rcx, rsi
call fcn.14004fe10
jmp 0x140050ac8
mov rcx, r14
call fcn.140043fd0
test eax, eax
je 0x14005050d
mov r8d, eax
lea rdx, str.free_space_corruption
mov rcx, rsi
call fcn.14004fe10
jmp 0x140050ac8
mov r10, qword [r14 + 0x50]
lea rax, str.Tree__u_page__u_cell__u:
movzx r8d, byte [r14 + 9]
mov qword [rsi + 0x30], rax
movzx edx, byte [r14 + 8]
mov qword [rsp + 0x50], 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 + 0x60], r9d
sub ecx, edx
mov qword [rsp + 0x90], r8
inc r9d
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x48], r9d
lea eax, [r8 + rcx*4]
mov dword [rsp + 0x5c], eax
lea eax, [rax + rbp*2]
add eax, 0xfffffffe
movsxd rcx, eax
add rcx, r10
mov qword [rsp + 0x70], rcx
test dl, dl
jne 0x1400505f0
mov edi, dword [r8 + r10 + 8]
bswap edi
cmp byte [r15 + 0x21], bl
je 0x1400505ba
mov r9d, dword [rsp + 0x3c]
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.14004ff40
mov r9, qword [rsp + 0xc0]
lea r8, [rsp + 0xc0]
mov edx, edi
mov rcx, rsi
call fcn.1400502c0
mov rcx, qword [rsp + 0x70]
mov r13d, r12d
mov r9d, dword [rsp + 0x48]
mov r10, qword [rsp + 0x50]
mov edi, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
jmp 0x1400505f7
mov rbx, qword [rsi + 0x68]
mov dword [rbx], r12d
lea eax, [rbp - 1]
mov dword [rsp + 0x44], eax
test eax, eax
js 0x1400507f1
mov r15d, dword [rsp + 0x30]
nop dword [rax + rax]
cmp dword [rsi + 0x1c], r12d
je 0x1400507ed
mov dword [rsi + 0x40], eax
lea ebp, [r15 - 4]
movzx eax, word [rcx]
sub rcx, 2
ror ax, 8
movzx edi, ax
mov qword [rsp + 0x70], rcx
cmp edi, r9d
jb 0x140050a3a
cmp edi, ebp
ja 0x140050a3a
lea r15, [r10 + rdi]
mov rcx, r14
mov rdx, r15
lea r8, [rsp + 0xa0]
call qword [r14 + 0x80]
movzx r9d, word [rsp + 0xb6]
mov edx, dword [rsp + 0x30]
lea eax, [rdi + r9]
cmp eax, edx
jbe 0x14005068f
lea rdx, str.Extends_off_end_of_page
mov rcx, rsi
call fcn.14004fe10
mov edi, r12d
mov dword [rsp + 0x34], r12d
jmp 0x1400507c8
cmp byte [r14 + 1], r12b
je 0x1400506f3
mov rax, qword [rsp + 0xa0]
mov ecx, r12d
test r13d, r13d
je 0x1400506b2
cmp rax, qword [rsp + 0xc0]
setg cl
jmp 0x1400506bd
cmp rax, qword [rsp + 0xc0]
setge cl
test ecx, ecx
je 0x1400506e8
mov r8, rax
lea rdx, str.Rowid__lld_out_of_order
mov rcx, rsi
call fcn.14004fe10
movzx r9d, word [rsp + 0xb6]
mov rax, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x30]
mov qword [rsp + 0xc0], rax
mov r13d, r12d
movzx ecx, word [rsp + 0xb4]
mov eax, dword [rsp + 0xb0]
cmp eax, ecx
jbe 0x14005075d
sub eax, ecx
movzx ecx, r9w
add eax, 0xfffffffb
add eax, edx
xor edx, edx
div ebp
mov ebp, dword [rcx + r15 - 4]
mov r14d, eax
mov rax, qword [rsp + 0x80]
bswap ebp
cmp byte [rax + 0x21], r12b
je 0x14005073f
mov r9d, dword [rsp + 0x3c]
mov r8b, 3
mov edx, ebp
mov rcx, rsi
call fcn.14004ff40
mov r9d, r14d
mov r8d, ebp
xor edx, edx
mov rcx, rsi
call fcn.140050000
movzx r9d, word [rsp + 0xb6]
mov r14, qword [rsp + 0x78]
cmp byte [r14 + 8], r12b
jne 0x1400509e9
mov rax, qword [rsp + 0x80]
mov edi, dword [r15]
bswap edi
cmp byte [rax + 0x21], r12b
je 0x14005078c
mov r9d, dword [rsp + 0x3c]
mov r8b, 5
mov edx, edi
mov rcx, rsi
call fcn.14004ff40
mov r9, qword [rsp + 0xc0]
lea r8, [rsp + 0xc0]
mov edx, edi
mov rcx, rsi
call fcn.1400502c0
mov edi, eax
mov r13d, r12d
cmp eax, dword [rsp + 0x40]
je 0x1400507c4
lea rdx, str.Child_page_depth_differs
mov rcx, rsi
call fcn.14004fe10
mov dword [rsp + 0x40], edi
mov edi, dword [rsp + 0x34]
mov r15d, dword [rsp + 0x30]
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x70]
sub eax, 1
mov r9d, dword [rsp + 0x48]
mov r10, qword [rsp + 0x50]
mov dword [rsp + 0x44], eax
jns 0x140050610
mov ebp, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0xc0]
mov qword [rcx], rax
mov qword [rsi + 0x30], r12
test edi, edi
je 0x140050ac0
cmp dword [rsi + 0x1c], r12d
jle 0x140050ac8
mov r13, qword [rsp + 0x50]
cmp byte [r14 + 8], r12b
jne 0x1400508be
sub rbp, 1
mov rbx, qword [rsi + 0x68]
mov dword [rbx], r12d
js 0x1400508be
movsxd rax, dword [rsp + 0x5c]
mov r15, qword [rsp + 0x78]
lea r14, [rax + rbp*2]
add r14, r13
nop dword [rax + rax]
movzx eax, word [r14]
mov rcx, r15
ror ax, 8
movzx edi, ax
lea rdx, [rdi + r13]
call qword [r15 + 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 0x1400508b1
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 0x1400508b1
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x140050890
sub r14, 2
sub rbp, 1
jns 0x140050850
mov r14, r15
mov r15, qword [rsp + 0x90]
movzx r8d, byte [r15 + r13 + 1]
movzx eax, byte [r15 + r13 + 2]
shl r8d, 8
or r8d, eax
jbe 0x140050944
nop dword [rax + rax]
movzx edx, byte [r8 + r13 + 2]
movzx eax, byte [r8 + r13 + 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 0x140050931
mov eax, r8d
lea rdx, [rbx + rcx*4]
mov r8d, dword [rdx]
mov r9d, dword [rbx + rax*4]
cmp r8d, r9d
jbe 0x140050931
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x140050910
movzx eax, byte [r10 + r13]
movzx r8d, byte [r10 + r13 + 1]
shl eax, 8
or r8d, eax
ja 0x1400508e0
mov ebp, dword [rsp + 0x60]
nop dword [rax + rax]
mov eax, dword [rbx]
test eax, eax
je 0x140050a8b
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 0x1400509c5
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 0x1400509c5
mov dword [rbx + rax*4], r8d
mov r9d, ecx
lea r8d, [rcx + rcx]
mov dword [rbx + rcx*4], edx
cmp r8d, dword [rbx]
jbe 0x140050990
mov r8d, r10d
movzx eax, bp
shr r8d, 0x10
cmp eax, r8d
jae 0x140050a5d
sub r8d, eax
dec r12d
add r12d, r8d
mov ebp, r10d
jmp 0x140050950
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 0x1400507c4
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 0x1400507c4
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x140050a10
jmp 0x1400507c4
mov r8d, edi
mov dword [rsp + 0x20], ebp
lea rdx, str.Offset__u_out_of_range__u.._u
mov rcx, rsi
call fcn.14004fe10
mov edi, r12d
mov dword [rsp + 0x34], r12d
jmp 0x1400507cd
mov edi, dword [rsp + 0x3c]
lea rdx, str.Multiple_uses_for_byte__u_of_page__u
mov r9d, edi
mov rcx, rsi
call fcn.14004fe10
mov r8d, dword [rsp + 0x30]
movzx eax, bp
sub r8d, eax
dec r8d
add r8d, r12d
cmp dword [rbx], 0
jne 0x140050ac8
jmp 0x140050aa0
mov ecx, dword [rsp + 0x30]
lea r8d, [r12 - 1]
mov edi, dword [rsp + 0x3c]
movzx eax, bp
sub ecx, eax
add r8d, ecx
movzx r9d, byte [r15 + r13 + 7]
cmp r8d, r9d
je 0x140050ac8
lea rdx, str.Fragmentation_of__u_bytes_reported_as__u_on_page__u
mov dword [rsp + 0x20], edi
mov rcx, rsi
call fcn.14004fe10
jmp 0x140050ac8
movzx eax, byte [rsp + 0x38]
mov byte [r14], al
mov r8, qword [r14 + 0x70]
mov r14, qword [rsp + 0xe0]
test byte [r8 + 0x34], 0x20
je 0x140050b1d
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]
jmp 0x140050430
mov rcx, r8
call fcn.140037860
jmp 0x140050430
lea rdx, str.invalid_page_number__u
mov r8d, ebp
mov rcx, rsi
call fcn.14004fe10
xor eax, eax
jmp 0x140050450