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

Disassembly:
sub esp, 0x70
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x10], edx
push esi
xor esi, esi
mov dword [esp + 0x54], ebp
push edi
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x4c]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x64], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 1
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], eax
cmp dword [ecx + 0x128], esi
je 0x1004be80
inc dword [ebp + 0x14]
mov dword [eax], 9
mov dword [ebp + 0x10], esi
jmp 0x1004be84
mov dword [esp + 0x2c], eax
cmp dword [ecx + 0x174], esi
je 0x1004becd
inc dword [ebp + 0x1c]
xor edx, edx
mov eax, dword [ebp + 0x1c]
div dword [ecx + 0x17c]
test edx, edx
jne 0x1004bec9
push dword [ecx + 0x178]
mov eax, dword [ecx + 0x174]
call eax
mov edx, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x1004becd
mov eax, dword [esp + 0x2c]
inc dword [ebp + 0x14]
mov dword [ebp + 0x10], esi
mov dword [eax], 9
jmp 0x1004becd
mov edx, dword [esp + 0x18]
cmp dword [ebp + 0x10], esi
je 0x1004bf7b
mov ebx, dword [ebp]
mov dword [esp + 0x24], ebx
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x20], eax
test edx, edx
je 0x1004c573
cmp edx, dword [ebp + 0xc]
ja 0x1004c564
mov ecx, dword [esp + 0x18]
mov edi, edx
shr edi, 3
and ecx, 7
add edi, dword [ebp + 8]
mov eax, 1
shl eax, cl
movzx edx, byte [edi]
test edx, eax
je 0x1004bf2e
push dword [esp + 0x18]
push str.2nd_reference_to_page__u
push ebp
call fcn.1004ba50
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
bts edx, ecx
mov ecx, dword [esp + 0x18]
mov byte [edi], dl
lea edx, [esp + 0x48]
push 0
mov dword [ebp + 0x20], str.Tree__u_page__u:
mov dword [ebp + 0x28], ecx
mov eax, dword [ebx]
push edx
push ecx
push eax
mov eax, dword [eax + 0xdc]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1004bf9d
push edi
push str.unable_to_get_the_page._error_code_d
push ebp
call fcn.1004ba50
add esp, 0xc
cmp edi, 0xc0a
jne 0x1004bf7b
mov dword [ebp + 0x18], 7
mov eax, dword [esp + 0x5c]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x30]
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + 8]
mov dword [esp + 0x14], edx
lea edi, [edx + 0x38]
lea ebx, [edx + 9]
cmp eax, dword [edx + 4]
je 0x1004bfd9
mov eax, dword [ecx + 4]
mov dword [edi], eax
mov eax, dword [esp + 0x24]
mov dword [edx + 0x34], eax
mov eax, dword [esp + 0x18]
cmp eax, 1
mov dword [edx + 4], eax
setne al
mov dword [edx + 0x48], ecx
dec al
and al, 0x64
mov byte [ebx], al
mov al, byte [edx]
mov ecx, edx
mov byte [esp + 0x13], al
mov byte [edx], 0
call fcn.10041930
test eax, eax
je 0x1004c015
push eax
push str.btreeInitPage___returns_error_code__d
push ebp
call fcn.1004ba50
add esp, 0xc
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1004bf7b
mov ecx, dword [ecx + 0x48]
call fcn.1003a430
jmp 0x1004bf7b
mov ecx, dword [esp + 0x14]
call fcn.10041700
test eax, eax
je 0x1004c02a
push eax
push str.free_space_corruption
jmp 0x1004bff3
mov edx, dword [edi]
movzx edi, byte [ebx]
mov dword [ebp + 0x20], str.Tree__u_page__u_cell__u:
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edx
movzx ecx, byte [edi + edx + 5]
movzx eax, byte [edi + edx + 6]
movzx ebx, byte [edi + edx + 3]
shl ecx, 8
or ecx, eax
shl ebx, 8
dec ecx
movzx eax, cx
mov ecx, 3
inc eax
mov dword [esp + 0x44], eax
movzx eax, byte [edi + edx + 4]
mov edi, dword [esp + 0x14]
or ebx, eax
mov dword [esp + 0x50], ebx
mov dl, byte [edi + 8]
movzx eax, dl
sub ecx, eax
mov eax, dword [esp + 0x2c]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
lea eax, [eax + ebx*2]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x38], eax
test dl, dl
jne 0x1004c0f5
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + ecx + 8]
mov eax, dword [esp + 0x24]
bswap edi
cmp byte [eax + 0x11], dl
je 0x1004c0c5
push dword [esp + 0x18]
mov edx, edi
mov dword [ebp + 0x20], str.Tree__u_page__u_right_child:
push 5
mov ecx, ebp
call fcn.1004bb50
add esp, 8
push dword [esp + 0x8c]
lea eax, [esp + 0x8c]
mov edx, edi
push dword [esp + 0x8c]
mov ecx, ebp
push eax
call fcn.1004be20
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], esi
jmp 0x1004c0fe
mov esi, dword [ebp + 0x48]
mov dword [esi], 0
lea eax, [ebx - 1]
mov dword [esp + 0x40], eax
test eax, eax
js 0x1004c352
jmp 0x1004c114
mov edi, dword [esp + 0x14]
cmp dword [ebp + 0x10], 0
je 0x1004c34e
mov edx, dword [esp + 0x38]
mov dword [ebp + 0x2c], eax
mov ax, word [edx]
sub edx, 2
mov ch, al
mov dword [esp + 0x38], edx
mov cl, ah
movzx ebx, cx
mov ecx, dword [esp + 0x44]
cmp ebx, ecx
jb 0x1004c31d
mov eax, dword [esp + 0x20]
add eax, 0xfffffffc
cmp ebx, eax
ja 0x1004c31d
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x68]
add eax, ebx
push ecx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x50]
push edi
call eax
mov di, word [esp + 0x86]
add esp, 0xc
mov edx, dword [esp + 0x20]
movzx eax, di
add eax, ebx
cmp eax, edx
jbe 0x1004c192
push str.Extends_off_end_of_page
push ebp
call fcn.1004ba50
add esp, 8
jmp 0x1004c335
mov eax, dword [esp + 0x14]
cmp byte [eax + 1], 0
je 0x1004c21d
cmp dword [esp + 0x28], 0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
je 0x1004c1d2
cmp eax, dword [esp + 0x8c]
jl 0x1004c1ca
jg 0x1004c1c3
cmp ecx, dword [esp + 0x88]
jbe 0x1004c1ca
mov edx, 1
jmp 0x1004c1cc
xor edx, edx
test edx, edx
je 0x1004c203
jmp 0x1004c1e6
cmp eax, dword [esp + 0x8c]
jl 0x1004c207
jg 0x1004c1e6
cmp ecx, dword [esp + 0x88]
jb 0x1004c207
push eax
push ecx
push str.Rowid__lld_out_of_order
push ebp
call fcn.1004ba50
mov eax, dword [esp + 0x7c]
add esp, 0x10
mov ecx, dword [esp + 0x68]
mov di, word [esp + 0x7a]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x28], 0
movzx ecx, word [esp + 0x78]
mov eax, dword [esp + 0x74]
cmp eax, ecx
jbe 0x1004c277
sub eax, ecx
lea ecx, [edx - 4]
add eax, 0xfffffffb
add eax, edx
xor edx, edx
div ecx
movzx ecx, di
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov edi, dword [ecx + edi - 4]
mov ecx, dword [esp + 0x24]
bswap edi
cmp byte [ecx + 0x11], 0
je 0x1004c269
push dword [esp + 0x18]
mov edx, edi
mov ecx, ebp
push 3
call fcn.1004bb50
mov eax, dword [esp + 0x54]
add esp, 8
push eax
push edi
xor edx, edx
mov ecx, ebp
call fcn.1004bbf0
add esp, 8
mov eax, dword [esp + 0x14]
cmp byte [eax + 8], 0
jne 0x1004c2eb
mov eax, dword [esp + 0x3c]
mov edi, dword [eax]
mov eax, dword [esp + 0x24]
bswap edi
cmp byte [eax + 0x11], 0
je 0x1004c2a5
push dword [esp + 0x18]
mov edx, edi
mov ecx, ebp
push 5
call fcn.1004bb50
add esp, 8
push dword [esp + 0x8c]
lea eax, [esp + 0x8c]
mov edx, edi
push dword [esp + 0x8c]
mov ecx, ebp
push eax
call fcn.1004be20
mov edi, eax
mov dword [esp + 0x34], 0
add esp, 0xc
cmp edi, dword [esp + 0x30]
je 0x1004c33d
push str.Child_page_depth_differs
push ebp
call fcn.1004ba50
add esp, 8
mov dword [esp + 0x30], edi
jmp 0x1004c33d
movzx eax, word [esp + 0x7a]
inc dword [esi]
dec eax
mov edi, dword [esi]
add eax, ebx
shl ebx, 0x10
or eax, ebx
mov dword [esi + edi*4], eax
mov eax, edi
shr eax, 1
je 0x1004c33d
mov ecx, dword [esi + eax*4]
mov edx, dword [esi + edi*4]
cmp ecx, edx
jbe 0x1004c33d
mov dword [esi + eax*4], edx
mov dword [esi + edi*4], ecx
mov edi, eax
shr eax, 1
jne 0x1004c305
jmp 0x1004c33d
mov eax, dword [esp + 0x20]
add eax, 0xfffffffc
push eax
push ecx
push ebx
push str.Offset__u_out_of_range__u.._u
push ebp
call fcn.1004ba50
add esp, 0x14
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x40]
sub eax, 1
mov dword [esp + 0x40], eax
jns 0x1004c110
mov ebx, dword [esp + 0x50]
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [ebp + 0x20], 0
je 0x1004c555
cmp dword [ebp + 0x10], 0
jle 0x1004bffc
mov edx, dword [esp + 0x14]
cmp byte [edx + 8], 0
jne 0x1004c409
add ebx, 0xffffffff
mov esi, dword [ebp + 0x48]
mov dword [esi], 0
js 0x1004c409
mov eax, dword [esp + 0x54]
lea ebp, [eax + ebx*2]
add ebp, dword [esp + 0x1c]
nop dword [eax + eax]
mov ax, word [ebp]
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x1c]
movzx edi, cx
add eax, edi
push eax
mov eax, dword [edx + 0x4c]
push edx
call eax
inc dword [esi]
add esp, 8
movzx eax, ax
dec eax
add eax, edi
shl edi, 0x10
or eax, edi
mov edi, dword [esi]
mov dword [esi + edi*4], eax
mov eax, edi
shr eax, 1
je 0x1004c3f9
mov ecx, dword [esi + eax*4]
mov edx, dword [esi + edi*4]
cmp ecx, edx
jbe 0x1004c3f9
mov dword [esi + eax*4], edx
mov dword [esi + edi*4], ecx
mov edi, eax
shr eax, 1
jne 0x1004c3e3
mov edx, dword [esp + 0x14]
sub ebp, 2
sub ebx, 1
jns 0x1004c3b0
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
movzx ebx, byte [eax + edx + 1]
movzx eax, byte [eax + edx + 2]
shl ebx, 8
or ebx, eax
jbe 0x1004c474
movzx ecx, byte [ebx + edx + 2]
movzx eax, byte [ebx + edx + 3]
inc dword [esi]
mov edi, dword [esi]
shl ecx, 8
or ecx, eax
mov eax, ebx
dec ecx
shl eax, 0x10
add ecx, ebx
or ecx, eax
mov eax, edi
shr eax, 1
mov dword [esi + edi*4], ecx
je 0x1004c462
mov ecx, dword [esi + eax*4]
mov edx, dword [esi + edi*4]
cmp ecx, edx
jbe 0x1004c45e
mov dword [esi + eax*4], edx
mov dword [esi + edi*4], ecx
mov edi, eax
shr eax, 1
jne 0x1004c448
mov edx, dword [esp + 0x1c]
movzx ecx, byte [ebx + edx]
movzx eax, byte [ebx + edx + 1]
shl ecx, 8
mov ebx, ecx
or ebx, eax
ja 0x1004c422
mov eax, dword [esp + 0x44]
xor edx, edx
dec eax
mov ecx, dword [esi]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x1004c511
mov eax, dword [esi + ecx*4]
mov edi, 1
mov ebx, dword [esi + 4]
mov dword [esi + 4], eax
mov dword [esi + ecx*4], 0xffffffff
mov ecx, 2
dec dword [esi]
cmp dword [esi], ecx
jb 0x1004c4da
nop dword [eax]
mov eax, dword [esi + ecx*4 + 4]
lea edx, [ecx + 1]
cmp dword [esi + ecx*4], eax
mov eax, dword [esi + edi*4]
cmovbe edx, ecx
mov ecx, dword [esi + edx*4]
cmp eax, ecx
jb 0x1004c4d6
mov dword [esi + edi*4], ecx
mov edi, edx
mov dword [esi + edx*4], eax
lea ecx, [edi + edi]
cmp ecx, dword [esi]
jbe 0x1004c4b0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov eax, ebx
shr eax, 0x10
movzx ecx, cx
cmp ecx, eax
jae 0x1004c4f3
sub eax, ecx
dec eax
add edx, eax
mov eax, ebx
jmp 0x1004c47b
mov ebx, dword [esp + 0x18]
push ebx
push eax
push str.Multiple_uses_for_byte__u_of_page__u
push ebp
call fcn.1004ba50
mov eax, dword [esp + 0x44]
add esp, 0x10
mov edx, dword [esp + 0x28]
jmp 0x1004c515
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
movzx eax, ax
sub ecx, eax
dec ecx
add ecx, edx
cmp dword [esi], 0
jne 0x1004bffc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
movzx eax, byte [edx + eax + 7]
cmp ecx, eax
je 0x1004bffc
push ebx
push eax
push ecx
push str.Fragmentation_of__u_bytes_reported_as__u_on_page__u
push ebp
call fcn.1004ba50
add esp, 0x14
jmp 0x1004bffc
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x13]
mov byte [ecx], al
jmp 0x1004c000
push edx
push str.invalid_page_number__u
push ebp
call fcn.1004ba50
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x70
ret