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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x4f72bc]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], eax
xor eax, eax
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push str.Page__d:
lea eax, [esp + 0x70]
push eax
push 0x64
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], edx
call fcn.0040a9a0
mov ebx, dword [edi]
mov ecx, dword [ebx + 0x24]
add esp, 0x10
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ecx
test esi, esi
je 0x422927
mov edx, dword [esp + 0x2c]
push edx
push edi
mov eax, esi
call fcn.004224e0
add esp, 8
test eax, eax
jne 0x422927
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebx]
push esi
xor ecx, ecx
call fcn.00415b10
add esp, 8
test eax, eax
jne 0x422913
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x44], eax
cmp esi, 1
setne al
dec al
mov dword [ebx + 0x48], esi
and al, 0x64
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x34], edx
mov byte [ebx + 5], al
mov esi, ebx
mov dword [esp + 0x24], ebx
mov byte [ebx], 0
call fcn.0041ad90
test eax, eax
je 0x42293e
push eax
push str.btreeInitPage___returns_error_code__d
lea edx, [esp + 0x70]
push edx
push edi
call fcn.00422470
mov eax, dword [ebx + 0x44]
push eax
call fcn.00415e60
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
push eax
push str.unable_to_get_the_page._error_code_d
lea ecx, [esp + 0x70]
push ecx
push edi
call fcn.00422470
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
cmp cx, word [ebx + 0x10]
jae 0x422b69
cmp dword [edi + 0x10], 0
je 0x422b69
mov esi, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
push esi
push edx
push str.On_tree_page__d_cell__d:
lea eax, [esp + 0x74]
push eax
push 0x64
call fcn.0040a9a0
mov ecx, dword [ebx + 0x40]
movzx edx, byte [ecx + esi*2 + 1]
lea eax, [ecx + esi*2]
movzx esi, byte [eax]
movzx eax, word [ebx + 0x12]
shl esi, 8
or esi, edx
and esi, eax
add esi, dword [ebx + 0x38]
add esp, 0x14
push esi
push ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], esi
call fcn.0041a4b0
mov edi, dword [esp + 0x5c]
add esp, 8
cmp byte [ebx + 2], 0
jne 0x4229b9
add edi, dword [esp + 0x48]
jmp 0x422a1b
cmp dword [esp + 0x14], 0
jne 0x4229d2
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x422a13
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x4c], ecx
jg 0x422a0b
mov eax, dword [esp + 0x18]
jl 0x4229e8
cmp dword [esp + 0x48], eax
ja 0x422a0b
mov edx, dword [esp + 0x4c]
push ecx
push eax
mov eax, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x18]
push eax
push str.Rowid__lld_out_of_order__previous_was__lld_
lea ecx, [esp + 0x7c]
push ecx
push edx
call fcn.00422470
add esp, 0x1c
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x5e]
cmp edi, eax
jbe 0x422ab3
mov edx, dword [esp + 0x34]
movzx ecx, word [esp + 0x60]
mov edx, dword [edx + 0x24]
add edx, dword [ebx + 0x38]
add ecx, esi
cmp ecx, edx
ja 0x422ab3
mov edx, dword [esp + 0x30]
sub edi, eax
lea eax, [edi + edx - 5]
lea edi, [edx - 4]
xor edx, edx
div edi
movzx edi, byte [ecx]
movzx edx, byte [ecx + 2]
shl edi, 8
mov dword [esp + 0x40], eax
movzx eax, byte [ecx + 1]
or edi, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [esp + 0x34]
shl edi, 8
or edi, edx
shl edi, 8
or edi, eax
cmp byte [ecx + 0x11], 0
je 0x422a99
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x68]
push edx
push eax
mov bl, 3
call fcn.00422560
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
mov eax, edi
call fcn.004225e0
add esp, 0xc
cmp byte [ebx + 3], 0
jne 0x422b50
movzx edi, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x34]
shl edi, 8
or edi, ecx
shl edi, 8
or edi, edx
cmp byte [eax + 0x11], 0
je 0x422b00
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x68]
push ecx
push edx
mov bl, 5
call fcn.00422560
mov ebx, dword [esp + 0x2c]
add esp, 8
mov esi, dword [esp + 0x14]
mov eax, esi
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
and eax, ecx
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x70]
push eax
push edi
push ecx
call fcn.00422800
add esp, 0x14
mov edi, eax
test esi, esi
jle 0x422b4c
cmp edi, dword [esp + 0x2c]
je 0x422b4c
mov eax, dword [esp + 0xc]
push str.Child_page_depth_differs
lea edx, [esp + 0x6c]
push edx
push eax
call fcn.00422470
add esp, 0xc
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x14]
movzx ecx, word [ebx + 0x10]
mov edi, dword [esp + 0xc]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x422954
cmp byte [ebx + 3], 0
mov esi, dword [esp + 0x10]
jne 0x422c16
movzx edx, byte [ebx + 5]
mov eax, dword [ebx + 0x38]
movzx edi, byte [edx + eax + 8]
movzx ecx, byte [edx + eax + 9]
lea eax, [edx + eax + 8]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl edi, 8
or edi, ecx
mov ecx, dword [ebp + 0xc]
shl edi, 8
push ecx
or edi, edx
push str.On_page__d_at_right_child:
lea edx, [esp + 0x70]
push edx
shl edi, 8
push 0x64
or edi, eax
call fcn.0040a9a0
mov eax, dword [esp + 0x44]
add esp, 0x10
cmp byte [eax + 0x11], 0
je 0x422be0
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x68]
push ecx
push edx
mov bl, 5
call fcn.00422560
mov ebx, dword [esp + 0x2c]
add esp, 8
movzx eax, word [ebx + 0x10]
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
and eax, ecx
push eax
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x70]
push edx
push edi
push eax
call fcn.00422800
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
add esp, 0x14
cmp byte [ebx + 3], 0
je 0x422d10
cmp byte [ebx + 2], 0
je 0x422d10
test esi, esi
je 0x422cd8
mov edx, dword [esp + 0x28]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
test edx, edx
jne 0x422c66
cmp dword [esp + 0x1c], eax
jl 0x422d10
jg 0x422c4b
cmp dword [esp + 0x18], ecx
jbe 0x422d10
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
push str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
lea eax, [esp + 0x7c]
push eax
jmp 0x422d07
cmp dword [esp + 0x3c], eax
jg 0x422c97
jl 0x422c74
cmp dword [esp + 0x38], ecx
ja 0x422c97
mov edx, dword [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x44]
push ecx
push edx
push str.Rowid__lld_out_of_order__min_less_than_parent_min_of__lld_
lea eax, [esp + 0x7c]
push eax
push edi
call fcn.00422470
mov edx, dword [esp + 0x44]
add esp, 0x1c
mov eax, dword [edx + 4]
mov ecx, dword [edx]
cmp dword [esp + 0x1c], eax
jl 0x422cc9
jg 0x422caa
cmp dword [esp + 0x18], ecx
jbe 0x422cc9
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
push str.Rowid__lld_out_of_order__max_larger_than_parent_max_of__lld_
lea eax, [esp + 0x7c]
push eax
push edi
call fcn.00422470
add esp, 0x1c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi], ecx
mov dword [esi + 4], edx
jmp 0x422d10
mov eax, dword [esp + 0x28]
test eax, eax
je 0x422d10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x3c]
cmp edx, eax
jg 0x422d10
jl 0x422cf5
cmp dword [esp + 0x38], ecx
ja 0x422d10
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
push str.Rowid__lld_out_of_order__min_less_than_parent_max_of__lld_
lea ecx, [esp + 0x7c]
push ecx
push edi
call fcn.00422470
add esp, 0x1c
movzx eax, byte [ebx + 5]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x10], edx
call fcn.00410ea0
mov esi, eax
test esi, esi
jne 0x422d3d
mov dword [edi + 0x18], 1
jmp 0x422efa
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
movzx edi, byte [ecx + eax + 5]
movzx edx, byte [ecx + eax + 6]
mov eax, dword [esp + 0x30]
shl edi, 8
or edi, edx
dec edi
and edi, 0xffff
inc edi
sub eax, edi
push eax
lea ecx, [edi + esi]
push 0
push ecx
call fcn.004d29c0
add esp, 0xc
push edi
push 1
push esi
call fcn.004d29c0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
movzx eax, byte [ecx + edx + 3]
movzx edx, byte [ecx + edx + 4]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + 3]
mov edi, 3
sub edi, edx
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x40], eax
lea ecx, [ecx + edi*4]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x422e42
add ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
movzx edi, byte [eax]
movzx ecx, byte [eax + 1]
shl edi, 8
or edi, ecx
lea ecx, [edx - 4]
mov eax, 0x10000
cmp edi, ecx
jg 0x422df7
mov edx, dword [esp + 0x10]
lea eax, [edi + edx]
push eax
mov eax, ebx
call fcn.0041a5e0
mov edx, dword [esp + 0x34]
add esp, 4
movzx eax, ax
lea eax, [eax + edi - 1]
cmp eax, edx
jl 0x422e22
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
push edx
push str.Corruption_detected_in_cell__d_on_page__d
push 0
push eax
call fcn.00422470
mov edx, dword [esp + 0x44]
add esp, 0x14
jmp 0x422e2e
cmp eax, edi
jl 0x422e2e
inc byte [eax + esi]
dec eax
cmp eax, edi
jge 0x422e26
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 2
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x40]
jl 0x422dc2
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
movzx ecx, byte [edi + eax + 1]
movzx edi, byte [edi + eax + 2]
shl ecx, 8
or ecx, edi
jle 0x422e93
jmp 0x422e60
movzx edi, byte [eax + ecx + 2]
movzx eax, byte [eax + ecx + 3]
shl edi, 8
or edi, eax
lea eax, [edi + ecx - 1]
cmp eax, ecx
jl 0x422e7f
inc byte [eax + esi]
dec eax
cmp eax, ecx
jge 0x422e77
mov eax, dword [esp + 0x10]
movzx edi, byte [eax + ecx]
movzx ecx, byte [eax + ecx + 1]
shl edi, 8
or ecx, edi
jg 0x422e60
xor edi, edi
xor eax, eax
test edx, edx
jle 0x422ecf
jmp 0x422ea0
mov cl, byte [eax + esi]
test cl, cl
jne 0x422eaa
inc edi
jmp 0x422eaf
cmp cl, 1
jg 0x422eb6
inc eax
cmp eax, edx
jl 0x422ea0
jmp 0x422ecf
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.Multiple_uses_for_byte__d_of_page__d
push 0
push eax
call fcn.00422470
add esp, 0x14
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
movzx eax, byte [ecx + edx + 7]
cmp edi, eax
je 0x422efa
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
push ecx
push eax
push edi
push str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
push 0
push edx
call fcn.00422470
add esp, 0x18
call fcn.00410fa0
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x423014
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x422f50
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
mov edi, dword [esi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004d7d10
push edx
mov edx, dword [edi + 0x48]
push eax
push esi
call edx
add esp, 0x10
jmp 0x422fbd
or edx, 0xffffffff
add word [eax + 0x1a], dx
jne 0x422fbd
mov ecx, dword [eax + 0x1c]
add dword [ecx + 0xc], edx
test byte [eax + 0x18], 2
jne 0x422f8f
mov ecx, dword [eax + 0x1c]
cmp dword [ecx + 0x1c], 0
je 0x422fbd
cmp dword [eax + 0x14], 1
jne 0x422f7b
mov dword [ecx + 0x2c], 0
mov eax, dword [eax]
mov ecx, dword [ecx + 0x28]
push 0
push eax
push ecx
call dword [0x4f8c38]
add esp, 0xc
jmp 0x422fbd
call fcn.004107c0
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx]
mov dword [eax + 0x20], edx
test edx, edx
je 0x422fa3
mov dword [edx + 0x24], eax
cmp dword [ecx + 4], 0
mov dword [ecx], eax
jne 0x422fae
mov dword [ecx + 4], eax
cmp dword [ecx + 8], 0
jne 0x422fbd
test byte [eax + 0x18], 4
jne 0x422fbd
mov dword [ecx + 8], eax
cmp dword [ebx + 0x78], 0
jne 0x423014
mov edx, dword [ebx + 0xcc]
cmp dword [edx + 0xc], 0
jne 0x423014
mov al, byte [ebx + 0xf]
cmp al, 6
je 0x42300f
test al, al
je 0x42300f
cmp al, 2
jb 0x422ffd
mov eax, dword [0x506ce0]
test eax, eax
je 0x422fe9
call eax
mov eax, ebx
call fcn.00416740
mov eax, dword [0x506ce4]
test eax, eax
je 0x42300f
call eax
jmp 0x42300f
cmp byte [ebx + 4], 0
jne 0x42300f
push 0
push 0
call fcn.00413020
add esp, 8
call fcn.00412ec0
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
inc eax
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret