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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xe0
mov rax, qword [0x14012a040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx + 0x30]
mov edi, 1
mov qword [rsp + 0x98], rax
xor r13d, r13d
mov eax, dword [rcx + 0x3c]
mov rsi, rcx
mov dword [rsp + 0x68], eax
mov ebp, edi
mov eax, dword [rcx + 0x40]
mov ebx, r13d
mov r12d, edx
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0x88], r8
mov dword [rsp + 0x34], r12d
mov qword [rsp + 0xc0], r9
mov dword [rsp + 0x44], 0xffffffff
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x3c], edi
call fcn.140057e70
cmp dword [rsi + 0x1c], ebx
je 0x140058b4a
mov r15, qword [rsi]
mov qword [rsp + 0x78], r15
mov eax, dword [r15 + 0x38]
mov dword [rsp + 0x40], eax
test r12d, r12d
je 0x140058ba8
cmp r12d, dword [rsi + 0x18]
ja 0x140058b96
mov r9d, r12d
mov eax, r12d
shr r9, 3
and eax, 7
add r9, qword [rsi + 0x10]
movzx ecx, byte [r9]
bt ecx, eax
jae 0x14005842a
lea rdx, str.2nd_reference_to_page__u
mov r8d, r12d
mov rcx, rsi
call fcn.140057f00
xor eax, eax
jmp 0x140058b6a
bts ecx, eax
mov edx, r12d
mov byte [r9], cl
lea rax, str.Tree__u_page__u:
mov qword [rsi + 0x30], rax
lea r8, [rsp + 0xb8]
mov dword [rsi + 0x3c], r12d
xor r9d, r9d
mov rax, qword [r15]
mov rcx, rax
call qword [rax + 0x110]
test eax, eax
je 0x140058474
mov r8d, eax
lea rdx, str.unable_to_get_the_page._error_code_d
mov rcx, rsi
call fcn.140057f00
jmp 0x140058b4a
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xd8], r14
mov r14, qword [rcx + 0x10]
cmp r12d, dword [r14 + 4]
je 0x1400584b4
mov rax, qword [rcx + 8]
cmp r12d, edi
mov qword [r14 + 0x50], rax
mov eax, r13d
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], r12d
movzx eax, byte [r14]
mov rcx, r14
mov byte [rsp + 0x38], al
mov byte [r14], bl
call fcn.14004b7e0
test eax, eax
je 0x1400584e2
mov r8d, eax
lea rdx, str.btreeInitPage___returns_error_code__d
mov rcx, rsi
call fcn.140057f00
jmp 0x140058af1
mov rcx, r14
call fcn.14004b5a0
test eax, eax
je 0x140058505
mov r8d, eax
lea rdx, str.free_space_corruption
mov rcx, rsi
call fcn.140057f00
jmp 0x140058af1
mov r9, qword [r14 + 0x50]
lea rax, str.Tree__u_page__u_cell__u:
movzx r11d, byte [r14 + 9]
mov qword [rsi + 0x30], rax
movzx edx, byte [r14 + 8]
mov qword [rsp + 0x58], r9
movzx eax, byte [r11 + r9 + 6]
movzx ecx, byte [r11 + r9 + 5]
movzx r10d, byte [r9 + r11 + 4]
shl ecx, 8
or ecx, eax
mov qword [rsp + 0x90], r11
dec ecx
movzx eax, cx
mov ecx, 3
mov dword [rsp + 0x48], eax
sub ecx, edx
lea r8d, [rax + 1]
movzx eax, byte [r9 + r11 + 3]
shl eax, 8
or r10d, eax
mov dword [rsp + 0x50], r8d
lea rax, [r14 + 8]
mov dword [rsp + 0x54], r10d
mov qword [rsp + 0x80], rax
lea eax, [r11 + rcx*4]
mov dword [rsp + 0x64], eax
lea eax, [rax + r10*2]
add eax, 0xfffffffe
movsxd rcx, eax
add rcx, r9
mov qword [rsp + 0x70], rcx
test dl, dl
jne 0x1400585fe
mov edi, dword [r9 + r11 + 8]
bswap edi
cmp byte [r15 + 0x21], bl
je 0x1400585be
lea rax, str.Tree__u_page__u_right_child:
mov r9d, r12d
mov r8b, 5
mov qword [rsi + 0x30], rax
mov edx, edi
mov rcx, rsi
call fcn.140057fd0
mov r9, qword [rsp + 0xc0]
lea r8, [rsp + 0xc0]
mov edx, edi
mov rcx, rsi
call fcn.140058350
mov rcx, qword [rsp + 0x70]
mov ebp, r13d
mov r8d, dword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
mov r10d, dword [rsp + 0x54]
mov edi, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x3c], r13d
jmp 0x140058605
mov rbx, qword [rsi + 0x68]
mov dword [rbx], r13d
lea eax, [r10 - 1]
mov dword [rsp + 0x4c], eax
test eax, eax
js 0x14005885f
mov r15d, dword [rsp + 0x40]
add r15d, 0xfffffffc
mov dword [rsp + 0x60], r15d
cmp dword [rsi + 0x1c], r13d
je 0x14005885a
mov dword [rsi + 0x40], eax
movzx eax, word [rcx]
sub rcx, 2
ror ax, 8
movzx edi, ax
mov eax, r15d
mov qword [rsp + 0x70], rcx
cmp edi, r8d
jb 0x140058a6b
cmp edi, r15d
ja 0x140058a6b
lea r12, [r9 + rdi]
mov rcx, r14
mov rdx, r12
lea r8, [rsp + 0xa0]
call qword [r14 + 0x80]
movzx r9d, word [rsp + 0xb6]
mov edx, dword [rsp + 0x40]
lea eax, [rdi + r9]
cmp eax, edx
jbe 0x1400586a7
lea rdx, str.Extends_off_end_of_page
mov rcx, rsi
call fcn.140057f00
mov r12d, dword [rsp + 0x34]
mov edi, r13d
mov dword [rsp + 0x30], r13d
jmp 0x14005883a
cmp byte [r14 + 1], r13b
je 0x14005870f
mov rax, qword [rsp + 0xa0]
mov ecx, r13d
test ebp, ebp
je 0x1400586c9
cmp rax, qword [rsp + 0xc0]
setg cl
jmp 0x1400586d4
cmp rax, qword [rsp + 0xc0]
setge cl
test ecx, ecx
je 0x1400586ff
mov r8, rax
lea rdx, str.Rowid__lld_out_of_order
mov rcx, rsi
call fcn.140057f00
movzx r9d, word [rsp + 0xb6]
mov rax, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x40]
mov qword [rsp + 0xc0], rax
mov ebp, r13d
mov dword [rsp + 0x3c], r13d
movzx ecx, word [rsp + 0xb4]
mov eax, dword [rsp + 0xb0]
cmp eax, ecx
jbe 0x14005877b
sub eax, ecx
movzx ecx, r9w
add eax, 0xfffffffb
add eax, edx
xor edx, edx
div r15d
mov ebp, dword [rcx + r12 - 4]
mov r15d, eax
mov rax, qword [rsp + 0x78]
bswap ebp
cmp byte [rax + 0x21], r13b
je 0x140058759
mov r9d, dword [rsp + 0x34]
mov r8b, 3
mov edx, ebp
mov rcx, rsi
call fcn.140057fd0
mov r9d, r15d
mov r8d, ebp
xor edx, edx
mov rcx, rsi
call fcn.140058090
movzx r9d, word [rsp + 0xb6]
mov ebp, dword [rsp + 0x3c]
mov r15d, dword [rsp + 0x60]
mov rax, qword [rsp + 0x80]
cmp byte [rax], r13b
jne 0x1400587ed
mov edi, dword [r12]
mov rax, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x34]
bswap edi
cmp byte [rax + 0x21], r13b
je 0x1400587ae
mov r9d, r12d
mov r8b, 5
mov edx, edi
mov rcx, rsi
call fcn.140057fd0
mov r9, qword [rsp + 0xc0]
lea r8, [rsp + 0xc0]
mov edx, edi
mov rcx, rsi
call fcn.140058350
mov edi, eax
mov ebp, r13d
mov dword [rsp + 0x3c], r13d
cmp eax, dword [rsp + 0x44]
je 0x140058836
lea rdx, str.Child_page_depth_differs
mov rcx, rsi
call fcn.140057f00
mov dword [rsp + 0x44], edi
jmp 0x140058836
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 0x140058831
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 0x140058831
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x140058810
mov r12d, dword [rsp + 0x34]
mov edi, dword [rsp + 0x30]
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x70]
sub eax, 1
mov r8d, dword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
mov dword [rsp + 0x4c], eax
jns 0x140058623
mov r10d, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0xc0]
mov qword [rcx], rax
mov qword [rsi + 0x30], r13
test edi, edi
je 0x140058ae9
cmp dword [rsi + 0x1c], r13d
jle 0x140058af1
cmp byte [r14 + 8], r13b
jne 0x140058930
mov rbx, qword [rsi + 0x68]
mov ebp, r10d
sub rbp, 1
mov dword [rbx], r13d
js 0x140058930
movsxd rax, dword [rsp + 0x64]
mov r12, qword [rsp + 0x58]
lea r15, [rax + rbp*2]
add r15, r12
nop word [rax + rax]
movzx eax, word [r15]
mov rcx, r14
ror ax, 8
movzx edi, ax
lea rdx, [r12 + rdi]
call qword [r14 + 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 0x140058921
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 0x140058921
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x140058900
sub r15, 2
sub rbp, 1
jns 0x1400588c0
mov r12d, dword [rsp + 0x34]
mov r11, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x90]
movzx eax, bpl
movzx ecx, byte [rax + r11 + 1]
movzx r10d, byte [rax + r11 + 2]
shl ecx, 8
or r10d, ecx
jbe 0x1400589d0
nop word [rax + rax]
movzx eax, byte [r10 + r11 + 3]
movzx edx, byte [r10 + r11 + 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 0x1400589b1
nop
mov eax, r8d
lea rdx, [rbx + rcx*4]
mov r8d, dword [rdx]
mov r9d, dword [rbx + rax*4]
cmp r8d, r9d
jbe 0x1400589b1
mov dword [rdx], r9d
mov dword [rbx + rax*4], r8d
mov r8d, ecx
shr ecx, 1
jne 0x140058990
mov eax, r10d
movzx r10d, byte [r10 + r11]
shl r10d, 8
movzx eax, byte [rax + r11 + 1]
or r10d, eax
ja 0x140058960
nop dword [rax + rax]
mov eax, dword [rbx]
test eax, eax
je 0x140058aaa
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 0x140058a45
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 0x140058a45
mov dword [rbx + rax*4], r8d
mov r9d, ecx
lea r8d, [rcx + rcx]
mov dword [rbx + rcx*4], edx
cmp r8d, dword [rbx]
jbe 0x140058a10
mov edi, dword [rsp + 0x48]
mov r8d, r10d
shr r8d, 0x10
movzx eax, di
cmp eax, r8d
jae 0x140058a91
sub r8d, eax
mov dword [rsp + 0x48], r10d
dec r13d
add r13d, r8d
jmp 0x1400589d0
mov r9d, r8d
mov dword [rsp + 0x20], eax
mov r8d, edi
lea rdx, str.Offset__u_out_of_range__u.._u
mov rcx, rsi
call fcn.140057f00
mov edi, r13d
mov dword [rsp + 0x30], r13d
jmp 0x14005883a
mov r9d, r12d
lea rdx, str.Multiple_uses_for_byte__u_of_page__u
mov rcx, rsi
call fcn.140057f00
mov r11, qword [rsp + 0x58]
jmp 0x140058aae
mov edi, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
movzx eax, di
sub r8d, eax
dec r8d
add r8d, r13d
cmp dword [rbx], 0
jne 0x140058af1
movzx eax, bpl
movzx r9d, byte [rax + r11 + 7]
cmp r8d, r9d
je 0x140058af1
lea rdx, str.Fragmentation_of__u_bytes_reported_as__u_on_page__u
mov dword [rsp + 0x20], r12d
mov rcx, rsi
call fcn.140057f00
jmp 0x140058af1
movzx eax, byte [rsp + 0x38]
mov byte [r14], al
test r14, r14
je 0x140058b42
mov r8, qword [r14 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x140058b8c
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 r14, qword [rsp + 0xd8]
mov rax, qword [rsp + 0x98]
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 + 0x44]
inc eax
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140100360
add rsp, 0xe0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, r8
call fcn.14003e4d0
jmp 0x140058b42
lea rdx, str.invalid_page_number__u
mov r8d, r12d
mov rcx, rsi
call fcn.140057f00
xor eax, eax
jmp 0x140058b6a