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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x102d4008]
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 0x10082cf9
push 0x102b63bc
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.1010f56f
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 0x100830bc
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 8]
cmp ecx, dword [esi + 4]
je 0x10082d43
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.10082bb0
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10083055
mov eax, dword [esp + 0x20]
mov dword [eax], edi
cmp byte [ebx + 0x11], 0
je 0x1008303f
mov edi, dword [esp + 0x24]
mov cl, byte [edi + 9]
mov ebx, dword [edi + 4]
test cl, cl
je 0x10082d94
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x10082d94
mov ecx, edi
call fcn.10078580
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 0x10082db0
add dword [edi + 0xc], 0xffffffff
jne 0x10082db0
mov ecx, edi
call fcn.10078540
cmp dword [esp + 0x14], ebx
jne 0x10082e30
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.1007ecd0
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10082e09
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.10181160
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10082e10
mov ecx, edx
call fcn.1006ea70
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10082ff1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10082e78
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.10181160
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10082e7f
mov ecx, edx
call fcn.1006ea70
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
mov edx, ebx
mov ecx, esi
call fcn.10079ff0
mov edi, eax
add esp, 8
test edi, edi
jne 0x100830ba
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 3
jae 0x10082ed2
push 0x102b63bc
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 0x10082f00
mov edi, dword [esp + 0x14]
mov edx, dword [eax + 0x48]
mov ecx, dword [esi]
push 0
push edi
call fcn.10075110
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10082f00
mov eax, dword [esp + 0x10]
mov ecx, eax
mov dword [eax + 4], edi
call fcn.1007b980
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10082f50
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.10181160
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x2c]
add esp, 0x10
jmp 0x10082f57
mov ecx, edx
call fcn.1006ea70
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100830bc
push eax
mov dword [esp + 0x14], eax
mov edx, ebx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.10079ff0
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x20]
add esp, 8
mov dword [esp + 0x18], eax
mov ecx, esi
call fcn.1007ecd0
test esi, esi
je 0x10082fdf
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10082fd8
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.10181160
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10082fdf
mov ecx, edx
call fcn.1006ea70
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x100830ba
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov eax, dword [0x102d69fc]
dec ebx
div dword [ecx + 0x24]
lea esi, [eax + 1]
cmp ebx, esi
je 0x10083016
mov edx, ebx
call fcn.10078ba0
cmp eax, ebx
jne 0x10083019
mov ecx, dword [esp + 0x1c]
dec ebx
jmp 0x10083003
mov ecx, dword [esp + 0x24]
mov edx, 4
push ebx
call fcn.10083180
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.1007e940
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100830b3
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.10181160
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.1010f56f
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.1006ea70
mov eax, edi
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret