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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x102d2008]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, dword [edi + 4]
mov dword [esp + 0x1c], ebx
cmp edx, dword [ebx + 0x30]
jbe 0x10082629
push 0x102b4274
push 0x12d4b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.BasicSQLite.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
test eax, eax
jne 0x100829ec
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 8]
cmp ecx, dword [esi + 4]
je 0x10082673
mov eax, dword [edx + 4]
cmp ecx, 1
mov dword [esi + 0x38], eax
setne al
mov dword [esi + 0x48], edx
dec al
mov dword [esi + 0x34], ebx
and al, 0x64
mov dword [esi + 4], ecx
mov byte [esi + 9], al
mov edx, ecx
mov ecx, edi
push 0
call fcn.100824e0
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10082985
mov eax, dword [esp + 0x20]
mov dword [eax], edi
cmp byte [ebx + 0x11], 0
je 0x1008296f
mov edi, dword [esp + 0x24]
mov cl, byte [edi + 9]
mov ebx, dword [edi + 4]
test cl, cl
je 0x100826c4
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100826c4
mov ecx, edi
call fcn.10077eb0
mov cl, byte [edi + 9]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + 0x34]
bswap ebx
test cl, cl
je 0x100826e0
add dword [edi + 0xc], 0xffffffff
jne 0x100826e0
mov ecx, edi
call fcn.10077e70
cmp dword [esp + 0x14], ebx
jne 0x10082760
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.1007e600
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10082739
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10180ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10082740
mov ecx, edx
call fcn.1006e3b0
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10082921
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100827a8
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10180ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100827af
mov ecx, edx
call fcn.1006e3b0
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
mov edx, ebx
mov ecx, esi
call fcn.10079920
mov edi, eax
add esp, 8
test edi, edi
jne 0x100829ea
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 3
jae 0x10082802
push 0x102b4274
push 0x11742
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.BasicSQLite.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x14], 0xb
jmp 0x10082830
mov edi, dword [esp + 0x14]
mov edx, dword [eax + 0x48]
mov ecx, dword [esi]
push 0
push edi
call fcn.10074a40
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10082830
mov eax, dword [esp + 0x10]
mov ecx, eax
mov dword [eax + 4], edi
call fcn.1007b2b0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10082880
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10180ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x2c]
add esp, 0x10
jmp 0x10082887
mov ecx, edx
call fcn.1006e3b0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100829ec
push eax
mov dword [esp + 0x14], eax
mov edx, ebx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.10079920
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x20]
add esp, 8
mov dword [esp + 0x18], eax
mov ecx, esi
call fcn.1007e600
test esi, esi
je 0x1008290f
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10082908
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10180ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x1008290f
mov ecx, edx
call fcn.1006e3b0
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x100829ea
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov eax, dword [0x102d49fc]
dec ebx
div dword [ecx + 0x24]
lea esi, [eax + 1]
cmp ebx, esi
je 0x10082946
mov edx, ebx
call fcn.100784d0
cmp eax, ebx
jne 0x10082949
mov ecx, dword [esp + 0x1c]
dec ebx
jmp 0x10082933
mov ecx, dword [esp + 0x24]
mov edx, 4
push ebx
call fcn.10082ab0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.1007e270
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100829e3
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov dword [eax + 0x88], edx
mov esi, dword [eax + 0x3c]
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10180ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x20]
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.1006e3b0
mov eax, edi
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret