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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x30], eax
xor eax, eax
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push str.Page__d:
lea eax, [esp + 0x78]
push eax
push 0x64
mov dword [esp + 0x20], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x28], edx
call sym.sqlite3.dll_sqlite3_snprintf
mov edi, dword [ebx]
mov ecx, dword [edi + 0x28]
add esp, 0x10
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], ecx
test esi, esi
je 0x1001c277
mov edx, dword [esp + 0x30]
mov eax, esi
mov ecx, ebx
call fcn.1001bbd0
test eax, eax
jne 0x1001c277
mov ebx, dword [edi]
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x1001c0fc
mov edi, dword [ebx + 0xa8]
lea edx, [esp + 0x30]
push edx
push 1
push esi
call fcn.1000a0e0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1001c1ce
mov edi, dword [esp + 0x30]
cmp dword [edi + 0x10], eax
jne 0x1001c1dd
mov dword [edi + 0x10], ebx
cmp esi, 0x7fffffff
ja 0x1001c17d
mov eax, dword [0x1007cd4c]
mov ecx, dword [ebx + 0x80]
cdq
idiv ecx
inc eax
cmp esi, eax
je 0x1001c17d
cmp byte [ebx + 0xe], 0
jne 0x1001c15b
cmp dword [ebx + 0x18], esi
jb 0x1001c15b
mov eax, dword [ebx + 0x3c]
cmp dword [eax], 0
je 0x1001c15b
mov eax, edi
call fcn.1000d4e0
mov dword [esp + 0x14], eax
test eax, eax
je 0x1001c1dd
jmp 0x1001c19e
cmp esi, dword [ebx + 0x84]
jbe 0x1001c16d
mov dword [esp + 0x14], 0xd
jmp 0x1001c19e
push ecx
mov ecx, dword [edi]
push 0
push ecx
call fcn.10067e10
add esp, 0xc
jmp 0x1001c1dd
push 0x10079034
push 0x9be0
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.100058a0
add esp, 0x10
mov dword [esp + 0x14], 0xb
test byte [edi + 0x14], 2
je 0x1001c1ab
mov eax, edi
call fcn.1000a080
mov eax, dword [edi + 0x18]
dec dword [eax + 0xc]
cmp dword [edi + 0xc], 1
jne 0x1001c1be
mov dword [eax + 0x2c], 0
mov edx, dword [eax + 0x28]
push 1
push edi
push edx
call dword [0x1007cce8]
add esp, 0xc
mov eax, ebx
call fcn.1000ee50
xor edi, edi
cmp dword [esp + 0x14], edi
jne 0x1001c25b
mov ebx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
cmp esi, 1
setne dl
dec dl
mov dword [ebx + 0x44], edi
and dl, 0x64
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x48], esi
mov byte [ebx + 5], dl
mov edi, ebx
mov dword [esp + 0x2c], ebx
mov byte [ebx], 0
call fcn.10013d60
xor esi, esi
cmp eax, esi
je 0x1001c28e
mov ecx, dword [esp + 0x10]
push eax
push str.btreeInitPage___returns_error_code__d
lea eax, [esp + 0x78]
push eax
push ecx
call fcn.1001bb60
mov ebx, dword [ebx + 0x44]
add esp, 0x10
cmp ebx, esi
je 0x1001c244
mov esi, dword [ebx + 0x10]
mov eax, ebx
call fcn.1000a260
mov eax, esi
call fcn.1000ee50
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10065fcc
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push str.unable_to_get_the_page._error_code_d
lea ecx, [esp + 0x78]
push ecx
push edx
call fcn.1001bb60
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10065fcc
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
cmp dx, word [ebx + 0x10]
jae 0x1001c4cc
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x10], 0
je 0x1001c4d2
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
push esi
push ecx
push str.On_tree_page__d_cell__d:
lea edx, [esp + 0x7c]
push edx
push 0x64
call sym.sqlite3.dll_sqlite3_snprintf
mov eax, dword [ebx + 0x40]
movzx ecx, word [ebx + 0xc]
add ecx, eax
movzx edx, byte [ecx + esi*2]
lea ecx, [ecx + esi*2]
movzx esi, byte [ecx + 1]
movzx ecx, word [ebx + 0x12]
shl edx, 8
or esi, edx
and esi, ecx
add esi, eax
add esp, 0x14
push esi
push ebx
lea eax, [esp + 0x58]
mov dword [esp + 0x50], esi
call fcn.10013490
mov edi, dword [esp + 0x64]
add esp, 8
cmp byte [ebx + 2], 0
jne 0x1001c310
add edi, dword [esp + 0x50]
jmp 0x1001c37d
cmp dword [esp + 0x14], 0
jne 0x1001c331
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x1001c37d
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x54], ecx
jg 0x1001c36d
mov eax, dword [esp + 0x20]
jl 0x1001c347
cmp dword [esp + 0x50], eax
ja 0x1001c36d
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push str.Rowid__lld_out_of_order__previous_was__lld_
lea edx, [esp + 0x84]
push edx
push eax
call fcn.1001bb60
add esp, 0x1c
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
movzx eax, word [esp + 0x66]
cmp edi, eax
jbe 0x1001c41a
movzx ecx, word [esp + 0x68]
mov edx, dword [ebx + 0x40]
mov eax, dword [esp + 0x1c]
add edx, dword [eax + 0x28]
add ecx, esi
cmp ecx, edx
ja 0x1001c41a
movzx eax, word [esp + 0x66]
mov edx, dword [esp + 0x34]
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 + 1]
shl edi, 8
or edi, edx
mov edx, dword [esp + 0x1c]
shl edi, 8
mov dword [esp + 0x4c], eax
movzx eax, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
or edi, eax
shl edi, 8
or edi, ecx
cmp byte [edx + 0x15], 0
je 0x1001c400
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x70]
push eax
push ecx
mov bl, 3
call fcn.1001bc30
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x50]
add esp, 8
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x70]
push edx
push eax
push edi
push 0
push ecx
call fcn.1001bcb0
add esp, 0x14
cmp byte [ebx + 3], 0
jne 0x1001c4b7
movzx edi, byte [esi]
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, edx
mov edx, dword [esp + 0x1c]
shl edi, 8
or edi, eax
shl edi, 8
or edi, ecx
cmp byte [edx + 0x15], 0
je 0x1001c467
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x70]
push eax
push ecx
mov bl, 5
call fcn.1001bc30
mov ebx, dword [esp + 0x34]
add esp, 8
mov esi, dword [esp + 0x14]
mov edx, esi
neg edx
sbb edx, edx
lea eax, [esp + 0x20]
and edx, eax
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x78]
push edx
push edi
push eax
call fcn.1001c050
add esp, 0x14
mov edi, eax
test esi, esi
jle 0x1001c4b3
cmp edi, dword [esp + 0x30]
je 0x1001c4b3
mov edx, dword [esp + 0x10]
push str.Child_page_depth_differs
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.1001bb60
add esp, 0xc
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x14]
movzx ecx, word [ebx + 0x10]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x1001c2a2
mov edi, dword [esp + 0x10]
jmp 0x1001c4d4
mov edi, eax
cmp byte [ebx + 3], 0
jne 0x1001c579
movzx edx, byte [ebx + 5]
mov eax, dword [ebx + 0x40]
movzx ecx, byte [edx + eax + 8]
movzx edi, byte [edx + eax + 9]
lea eax, [edx + eax + 8]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 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 + 0x78]
push edx
shl edi, 8
push 0x64
or edi, eax
call sym.sqlite3.dll_sqlite3_snprintf
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp byte [eax + 0x15], 0
je 0x1001c547
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x70]
push ecx
push edx
mov bl, 5
call fcn.1001bc30
mov ebx, dword [esp + 0x34]
add esp, 8
movzx eax, word [ebx + 0x10]
neg eax
sbb eax, eax
lea ecx, [esp + 0x20]
and eax, ecx
push eax
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x78]
push edx
push edi
push eax
call fcn.1001c050
mov edi, dword [esp + 0x24]
add esp, 0x14
cmp byte [ebx + 3], 0
je 0x1001c686
cmp byte [ebx + 2], 0
je 0x1001c686
mov esi, dword [esp + 0x44]
test esi, esi
je 0x1001c64b
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x1001c5ce
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x24]
cmp ecx, esi
jl 0x1001c686
jg 0x1001c5b4
cmp dword [esp + 0x20], eax
jbe 0x1001c686
push esi
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
lea edx, [esp + 0x84]
push edx
jmp 0x1001c67d
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp dword [esp + 0x3c], eax
jg 0x1001c607
jl 0x1001c5e1
cmp dword [esp + 0x38], ecx
ja 0x1001c607
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push eax
push ecx
push str.Rowid__lld_out_of_order__min_less_than_parent_min_of__lld_
lea edx, [esp + 0x84]
push edx
push edi
call fcn.1001bb60
mov edx, dword [esp + 0x34]
add esp, 0x1c
mov eax, dword [edx + 4]
mov ecx, dword [edx]
cmp dword [esp + 0x24], eax
jl 0x1001c63c
jg 0x1001c61a
cmp dword [esp + 0x20], ecx
jbe 0x1001c63c
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
push str.Rowid__lld_out_of_order__max_larger_than_parent_max_of__lld_
lea edx, [esp + 0x84]
push edx
push edi
call fcn.1001bb60
add esp, 0x1c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x1001c686
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001c686
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x3c]
cmp edx, eax
jg 0x1001c686
jl 0x1001c668
cmp dword [esp + 0x38], ecx
ja 0x1001c686
push eax
push ecx
push edx
mov edx, dword [esp + 0x44]
push edx
push str.Rowid__lld_out_of_order__min_less_than_parent_max_of__lld_
lea eax, [esp + 0x84]
push eax
push edi
call fcn.1001bb60
add esp, 0x1c
movzx edx, byte [ebx + 5]
mov ecx, dword [ebx + 0x40]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], edx
call fcn.1000a710
mov esi, eax
test esi, esi
jne 0x1001c6b3
mov dword [edi + 0x18], 1
jmp 0x1001c878
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
movzx edi, byte [ecx + eax + 5]
movzx ecx, byte [ecx + eax + 6]
mov edx, dword [esp + 0x34]
shl edi, 8
or edi, ecx
dec edi
and edi, 0xffff
inc edi
sub edx, edi
push edx
lea eax, [edi + esi]
push 0
push eax
call fcn.10067e10
add esp, 0xc
push edi
push 1
push esi
call fcn.10067e10
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
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
add esp, 0xc
mov dword [esp + 0x44], eax
lea ecx, [ecx + edi*4]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x1001c7b4
add ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
movzx edi, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
or edi, ecx
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffffc
mov eax, 0x10000
cmp edi, ecx
jg 0x1001c765
mov edx, dword [esp + 0x18]
lea eax, [edi + edx]
push eax
mov eax, ebx
call fcn.100135c0
add esp, 4
movzx eax, ax
lea eax, [eax + edi - 1]
cmp eax, dword [esp + 0x34]
jl 0x1001c78e
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push edx
push str.Corruption_detected_in_cell__d_on_page__d
push 0
push eax
call fcn.1001bb60
add esp, 0x14
jmp 0x1001c79a
cmp eax, edi
jl 0x1001c79a
inc byte [eax + esi]
dec eax
cmp eax, edi
jge 0x1001c792
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc eax
add ecx, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
cmp eax, dword [esp + 0x44]
jl 0x1001c734
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
movzx ecx, byte [eax + edi + 1]
movzx edx, byte [eax + edi + 2]
shl ecx, 8
or ecx, edx
jle 0x1001c7ff
lea ecx, [ecx]
movzx eax, byte [edi + ecx + 2]
movzx edx, byte [edi + ecx + 3]
shl eax, 8
or eax, edx
lea eax, [eax + ecx - 1]
cmp eax, ecx
jl 0x1001c7ef
inc byte [eax + esi]
dec eax
cmp eax, ecx
jge 0x1001c7e7
movzx eax, byte [edi + ecx]
movzx ecx, byte [edi + ecx + 1]
shl eax, 8
or ecx, eax
jg 0x1001c7d0
xor edx, edx
xor eax, eax
mov dword [esp + 0x18], edx
cmp dword [esp + 0x34], eax
jle 0x1001c84d
lea ecx, [ecx]
mov cl, byte [eax + esi]
test cl, cl
jne 0x1001c81a
inc edx
jmp 0x1001c81f
cmp cl, 1
jg 0x1001c82c
inc eax
cmp eax, dword [esp + 0x34]
jl 0x1001c810
mov dword [esp + 0x18], edx
jmp 0x1001c84d
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.Multiple_uses_for_byte__d_of_page__d
push 0
push eax
call fcn.1001bb60
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx + edi + 7]
cmp edx, eax
je 0x1001c878
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
push str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
push 0
push ecx
call fcn.1001bb60
add esp, 0x18
call fcn.1000a810
mov eax, dword [ebx + 0x44]
xor esi, esi
cmp eax, esi
je 0x1001c99a
mov edi, dword [eax + 0x10]
or edx, 0xffffffff
add word [eax + 0x16], dx
mov dword [esp + 0x44], edi
jne 0x1001c949
mov ecx, dword [eax + 0x18]
add dword [ecx + 0xc], edx
test byte [eax + 0x14], 2
jne 0x1001c8d0
mov ecx, dword [eax + 0x18]
cmp dword [ecx + 0x1c], esi
je 0x1001c949
cmp dword [eax + 0xc], 1
jne 0x1001c8bf
mov dword [ecx + 0x2c], esi
mov edx, dword [ecx + 0x28]
push esi
push eax
push edx
call dword [0x1007cce8]
add esp, 0xc
jmp 0x1001c949
mov edx, dword [eax + 0x18]
mov bl, 4
cmp dword [edx + 8], eax
jne 0x1001c8f0
mov ecx, dword [eax + 0x20]
cmp ecx, esi
je 0x1001c8ed
test byte [ecx + 0x14], bl
je 0x1001c8ed
mov ecx, dword [ecx + 0x20]
cmp ecx, esi
jne 0x1001c8e1
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0x1c]
cmp ecx, esi
je 0x1001c903
mov edi, dword [eax + 0x20]
mov dword [ecx + 0x20], edi
mov edi, dword [esp + 0x44]
jmp 0x1001c909
mov ecx, dword [eax + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x20]
cmp ecx, esi
je 0x1001c918
mov edx, dword [eax + 0x1c]
mov dword [ecx + 0x1c], edx
jmp 0x1001c91d
mov ecx, dword [eax + 0x1c]
mov dword [edx], ecx
mov ecx, dword [eax + 0x18]
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov edx, dword [ecx]
mov dword [eax + 0x1c], edx
cmp edx, esi
je 0x1001c932
mov dword [edx + 0x20], eax
mov dword [ecx], eax
cmp dword [ecx + 4], esi
jne 0x1001c93c
mov dword [ecx + 4], eax
cmp dword [ecx + 8], esi
jne 0x1001c949
test byte [eax + 0x14], bl
jne 0x1001c949
mov dword [ecx + 8], eax
mov edx, dword [edi + 0xa8]
cmp dword [edx + 0xc], esi
jne 0x1001c99a
mov al, byte [edi + 0xf]
cmp al, 6
je 0x1001c993
test al, al
je 0x1001c993
cmp al, 2
jb 0x1001c982
mov eax, dword [0x1007ea04]
cmp eax, esi
je 0x1001c96e
call eax
mov eax, edi
call fcn.1000fa70
mov eax, dword [0x1007ea08]
cmp eax, esi
je 0x1001c993
call eax
jmp 0x1001c993
cmp byte [edi + 4], 0
jne 0x1001c993
push esi
mov ebx, edi
call fcn.1000c860
add esp, 4
mov ebx, edi
call fcn.1000c710
mov ecx, dword [esp + 0xdc]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
xor ecx, esp
inc eax
call fcn.10065fcc
mov esp, ebp
pop ebp
ret