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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], 1
push edi
mov edi, dword [esp + 0x78]
mov eax, dword [edi + 0x1c]
mov ebp, dword [edi]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x4a74c1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
push esi
push edi
call fcn.004a73e0
add esp, 8
test eax, eax
jne 0x4a74b7
push eax
lea eax, [esp + 0x18]
mov dword [edi + 0x1c], str.Page__u:
push eax
push esi
push ebp
mov dword [edi + 0x20], esi
call fcn.004a5b00
add esp, 0x10
test eax, eax
je 0x4a7531
push eax
push str.unable_to_get_the_page._error_code_d
push edi
call fcn.004a6fe0
add esp, 0xc
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4a750f
push dword [esi + 0x48]
call fcn.00503300
add esp, 4
mov eax, dword [esp + 0x50]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x54]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x64
ret
mov eax, dword [esp + 0x14]
push eax
mov cl, byte [eax]
mov byte [esp + 0x17], cl
mov byte [eax], bl
call fcn.004a5ca0
add esp, 4
test eax, eax
je 0x4a7552
push eax
push str.btreeInitPage___returns_error_code__d
jmp 0x4a74f3
mov esi, dword [esp + 0x14]
push esi
call fcn.004a5220
add esp, 4
test eax, eax
je 0x4a7574
push eax
push str.free_space_corruption
push edi
call fcn.004a6fe0
add esp, 0xc
jmp 0x4a7500
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x38]
movzx esi, byte [ecx + 9]
lea ebp, [esi + eax]
mov dword [esp + 0x18], eax
mov dword [edi + 0x1c], str.On_tree_page__u_cell__d:
movzx edx, byte [ebp + 5]
movzx eax, byte [ebp + 6]
shl edx, 8
or edx, eax
mov dword [esp + 0x34], ebp
mov eax, ebp
dec edx
movzx ebp, byte [ebp + 3]
and edx, 0xffff
inc edx
shl ebp, 8
mov dword [esp + 0x44], edx
movzx eax, byte [eax + 4]
mov dl, byte [ecx + 8]
or ebp, eax
movzx eax, dl
mov ecx, 3
sub ecx, eax
lea eax, [esi + ecx*4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
lea eax, [eax + ebp*2]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x38], eax
test dl, dl
jne 0x4a7633
lea eax, [esi + ecx]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x28]
bswap esi
cmp byte [eax + 0x11], bl
je 0x4a7609
push dword [esp + 0x7c]
mov dword [edi + 0x1c], str.On_page__u_at_right_child:
push 5
push esi
push edi
call fcn.004a7320
add esp, 0x10
push dword [esp + 0x88]
lea eax, [esp + 0x88]
push dword [esp + 0x88]
push eax
push esi
push edi
call fcn.004a7460
add esp, 0x14
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
jmp 0x4a763c
mov ebx, dword [edi + 0x40]
mov dword [ebx], 0
lea edx, [ebp - 1]
mov eax, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], eax
test eax, eax
js 0x4a7868
cmp dword [edi + 0x10], 0
je 0x4a7864
mov edx, dword [esp + 0x38]
mov dword [edi + 0x24], eax
mov ax, word [edx]
sub edx, 2
mov ch, al
mov dword [esp + 0x38], edx
mov cl, ah
movzx esi, cx
mov ecx, dword [esp + 0x44]
cmp esi, ecx
jb 0x4a7835
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffc
cmp esi, eax
ja 0x4a7835
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
add eax, esi
push ecx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax + 0x50]
call eax
mov bp, word [esp + 0x7a]
add esp, 0xc
mov edx, dword [esp + 0x1c]
movzx eax, bp
add eax, esi
cmp eax, edx
jbe 0x4a76d0
push str.Extends_off_end_of_page
push edi
call fcn.004a6fe0
add esp, 8
jmp 0x4a784d
mov eax, dword [esp + 0x14]
cmp byte [eax + 1], 0
je 0x4a774a
cmp dword [esp + 0x20], 0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
je 0x4a76ff
cmp eax, dword [esp + 0x88]
jg 0x4a7713
jl 0x4a7734
cmp ecx, dword [esp + 0x84]
ja 0x4a7713
jmp 0x4a7734
cmp eax, dword [esp + 0x88]
jl 0x4a7734
jg 0x4a7713
cmp ecx, dword [esp + 0x84]
jb 0x4a7734
push eax
push ecx
push str.Rowid__lld_out_of_order
push edi
call fcn.004a6fe0
mov bp, word [esp + 0x7e]
add esp, 0x10
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x20], 0
movzx ecx, word [esp + 0x6c]
mov eax, dword [esp + 0x68]
cmp eax, ecx
jbe 0x4a77ae
sub eax, ecx
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
add eax, 0xfffffffb
add eax, edx
xor edx, edx
lea ecx, [ecx - 4]
div ecx
movzx ecx, bp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov ebp, dword [ecx + ebp - 4]
mov ecx, dword [esp + 0x28]
bswap ebp
cmp byte [ecx + 0x11], 0
je 0x4a779c
push dword [esp + 0x7c]
push 3
push ebp
push edi
call fcn.004a7320
mov eax, dword [esp + 0x58]
add esp, 0x10
push eax
push ebp
push 0
push edi
call fcn.004a7180
mov bp, word [esp + 0x7e]
add esp, 0x10
mov eax, dword [esp + 0x14]
cmp byte [eax + 8], 0
jne 0x4a781e
mov eax, dword [esp + 0x3c]
mov esi, dword [eax]
mov eax, dword [esp + 0x28]
bswap esi
cmp byte [eax + 0x11], 0
je 0x4a77da
push dword [esp + 0x7c]
push 5
push esi
push edi
call fcn.004a7320
add esp, 0x10
push dword [esp + 0x88]
lea eax, [esp + 0x88]
push dword [esp + 0x88]
push eax
push esi
push edi
call fcn.004a7460
mov esi, eax
mov dword [esp + 0x34], 0
add esp, 0x14
cmp esi, dword [esp + 0x24]
je 0x4a7855
push str.Child_page_depth_differs
push edi
call fcn.004a6fe0
add esp, 8
mov dword [esp + 0x24], esi
jmp 0x4a7855
movzx eax, bp
dec eax
add eax, esi
shl esi, 0x10
or eax, esi
push eax
push ebx
call fcn.004a5c10
add esp, 8
jmp 0x4a7855
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffc
push eax
push ecx
push esi
push str.Offset__d_out_of_range__d.._d
push edi
call fcn.004a6fe0
add esp, 0x14
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jns 0x4a7651
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [ecx], eax
mov eax, dword [esp + 0x88]
mov dword [ecx + 4], eax
mov dword [edi + 0x1c], 0
je 0x4a7a14
cmp dword [edi + 0x10], 0
jle 0x4a74fc
mov eax, dword [esp + 0x14]
cmp byte [eax + 8], 0
jne 0x4a7901
mov ebx, dword [edi + 0x40]
mov dword [ebx], 0
test edx, edx
js 0x4a7901
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
lea ebp, [eax + edx*2]
mov edx, dword [esp + 0x18]
add ebp, edx
mov ax, word [ebp]
mov ch, al
mov cl, ah
movzx esi, cx
lea eax, [esi + edx]
push eax
mov eax, dword [edi + 0x4c]
push edi
call eax
movzx eax, ax
dec eax
add eax, esi
shl esi, 0x10
or eax, esi
push eax
push ebx
call fcn.004a5c10
mov edx, dword [esp + 0x28]
lea ebp, [ebp - 2]
add esp, 0x10
dec dword [esp + 0x30]
jns 0x4a78c6
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x34]
movzx ebp, byte [eax + 1]
movzx eax, byte [eax + 2]
shl ebp, 8
or ebp, eax
jle 0x4a7970
mov edx, dword [esp + 0x18]
jmp 0x4a7920
movzx ecx, byte [edx + ebp + 2]
movzx eax, byte [edx + ebp + 3]
inc dword [ebx]
mov esi, dword [ebx]
shl ecx, 8
or ecx, eax
mov eax, ebp
dec ecx
shl eax, 0x10
add ecx, ebp
or ecx, eax
mov eax, esi
shr eax, 1
mov dword [ebx + esi*4], ecx
je 0x4a7960
mov edx, dword [ebx + eax*4]
mov ecx, dword [ebx + esi*4]
cmp edx, ecx
jbe 0x4a795c
mov dword [ebx + eax*4], ecx
mov dword [ebx + esi*4], edx
mov esi, eax
shr eax, 1
jne 0x4a7946
mov edx, dword [esp + 0x18]
movzx ecx, byte [edx + ebp]
movzx ebp, byte [edx + ebp + 1]
shl ecx, 8
or ebp, ecx
jg 0x4a7920
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x78]
push eax
push ebx
xor ebp, ebp
dec esi
call fcn.004a5c40
add esp, 8
test eax, eax
je 0x4a79d6
lea esp, [esp]
mov edx, dword [esp + 0x78]
mov ecx, esi
mov eax, edx
and ecx, 0xffff
shr eax, 0x10
cmp ecx, eax
jae 0x4a79c0
sub eax, ecx
mov esi, edx
dec eax
add ebp, eax
lea eax, [esp + 0x78]
push eax
push ebx
call fcn.004a5c40
add esp, 8
test eax, eax
jne 0x4a7990
jmp 0x4a79d6
push dword [esp + 0x7c]
shr edx, 0x10
push edx
push str.Multiple_uses_for_byte__u_of_page__u
push edi
call fcn.004a6fe0
add esp, 0x10
mov ecx, dword [esp + 0x1c]
movzx eax, si
sub ecx, eax
dec ecx
add ecx, ebp
cmp dword [ebx], 0
jne 0x4a74fc
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 7]
cmp ecx, eax
je 0x4a74fc
push dword [esp + 0x7c]
push eax
push ecx
push str.Fragmentation_of__d_bytes_reported_as__d_on_page__u
push edi
call fcn.004a6fe0
add esp, 0x14
jmp 0x4a74fc
mov esi, dword [esp + 0x14]
mov al, byte [esp + 0x13]
mov byte [esi], al
jmp 0x4a7500