Function at 0x10068a00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, dword [ebx + 0x2c]
xor eax, eax
push edi
mov edi, dword [ebx + 0xc]
mov ecx, dword [edi + 0x38]
mov ah, byte [ecx + 0x24]
movzx esi, byte [ecx + 0x26]
add ecx, 0x24
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], edi
mov al, byte [ecx + 1]
movzx ecx, byte [ecx + 3]
mov dword [esp + 0x28], edx
shl eax, 8
or eax, esi
shl eax, 8
or eax, ecx
mov esi, eax
cmp esi, edx
jb 0x10068a70
push 0x100b2e14
push 0xdb67
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jbe 0x10069041
mov al, byte [ebp + 0x18]
cmp al, 1
mov byte [esp + 0xe], 0
jne 0x10068aab
mov eax, dword [ebp + 0x14]
cmp eax, edx
ja 0x10068ab4
lea edx, [esp + 0xf]
push 0
push edx
mov ecx, ebx
call fcn.10067d50
add esp, 8
test eax, eax
jne 0x10069220
cmp byte [esp + 0xf], 2
jmp 0x10068aad
cmp al, 2
jne 0x10068ab4
mov byte [esp + 0xe], 1
mov eax, dword [edi + 0x44]
push eax
call fcn.1003fe40
add esp, 4
test eax, eax
jne 0x10069220
mov eax, dword [edi + 0x38]
lea ecx, [esi - 1]
add eax, 0x24
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov byte [eax + 3], cl
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x10068b03
mov eax, dword [eax + 0x38]
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
jmp 0x10068b10
mov eax, dword [edi + 0x38]
movzx ecx, byte [eax + 0x21]
mov ch, byte [eax + 0x20]
add eax, 0x20
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov edi, ecx
cmp edi, dword [esp + 0x28]
ja 0x10068fa4
mov edx, dword [ebx]
push 0
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
call fcn.100670a0
add esp, 0x10
test eax, eax
jne 0x10068fca
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 4]
cmp edi, 1
setne dl
sub dl, 1
mov esi, ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x48], edi
and edx, 0x64
mov byte [ebx + 5], dl
movzx ecx, byte [esi + 5]
mov ch, byte [esi + 4]
movzx edx, byte [esi + 6]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 0
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 7]
shl ecx, 8
or ecx, edx
mov dword [esp + 0x14], ecx
jne 0x10068be3
cmp byte [esp + 0xe], 0
jne 0x10068be3
mov eax, dword [ebx + 0x44]
push eax
call fcn.1003fe40
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10068ff4
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
mov edx, dword [ebx + 0x38]
mov edx, dword [edx]
mov dword [ecx], edi
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x20], edx
mov dword [eax], ebx
mov dword [esp + 0x1c], 0
jmp 0x10068f80
mov edx, dword [eax + 0x24]
shr edx, 2
sub edx, 2
cmp ecx, edx
ja 0x10068fd3
cmp byte [esp + 0xe], 0
je 0x10068db9
mov eax, dword [ebp + 0x14]
cmp edi, eax
je 0x10068c16
jae 0x10068db9
cmp byte [ebp + 0x18], 2
jne 0x10068db9
mov edx, dword [ebx + 0x44]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov dword [eax], edi
mov dword [ecx], ebx
mov byte [esp + 0x12], 0
call fcn.1003fe40
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10068ff4
cmp dword [esp + 0x14], eax
jne 0x10068c9a
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10068c67
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x38]
mov eax, dword [eax]
mov dword [edx + 0x20], eax
mov dword [esp + 0x1c], 0
jmp 0x10068f80
mov ecx, dword [eax + 0x44]
push ecx
call fcn.1003fe40
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10068ff4
mov edx, dword [ebx + 0x38]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x38]
mov edx, dword [edx]
mov dword [ecx], edx
mov dword [esp + 0x1c], 0
jmp 0x10068f80
mov eax, dword [ebx + 0x38]
movzx edx, byte [eax + 0xa]
add eax, 8
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
shl ecx, 8
or eax, ecx
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
ja 0x1006901c
mov esi, dword [esp + 0x20]
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x34]
push ecx
xor eax, eax
call fcn.10067d00
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10068ff4
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 0x44]
push edx
call fcn.1003fe40
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1006902c
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
mov ecx, dword [esi + 0x38]
mov dword [ecx], edx
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0x14]
add ecx, 0xffffffff
add eax, 4
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov byte [eax + 3], cl
mov edx, dword [esi + 0x38]
lea eax, [ecx*4]
mov ecx, dword [ebx + 0x38]
push eax
add ecx, 0xc
push ecx
add edx, 8
push edx
call fcn.10008750
add esp, 0xc
mov eax, esi
call fcn.10024d00
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10068d6f
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x38]
add eax, 0x20
jmp 0x10068d8e
mov eax, dword [eax + 0x44]
push eax
call fcn.1003fe40
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10068ff4
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x38]
mov ecx, dword [esp + 0x20]
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 3], cl
mov byte [eax + 2], dl
mov dword [esp + 0x1c], 0
jmp 0x10068f80
test ecx, ecx
jbe 0x10068f80
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x20], edi
jbe 0x10068e99
cmp byte [ebp + 0x18], 2
jne 0x10068e1b
cmp ecx, edi
jbe 0x10068e99
lea eax, [esi + 0xa]
movzx edx, byte [eax]
xor ecx, ecx
mov ch, byte [eax - 2]
mov cl, byte [eax - 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
cmp ecx, dword [ebp + 0x14]
jbe 0x10068e12
add edi, 1
add eax, 4
cmp edi, dword [esp + 0x14]
jb 0x10068de3
jmp 0x10068e99
mov dword [esp + 0x20], edi
jmp 0x10068e99
movzx edx, byte [esi + 0xa]
xor ecx, ecx
mov ch, byte [esi + 8]
mov cl, byte [esi + 9]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0xb]
shl ecx, 8
or ecx, edx
sub ecx, eax
mov eax, ecx
call fcn.10015540
mov edi, 1
cmp dword [esp + 0x14], edi
mov dword [esp + 0x2c], eax
jbe 0x10068e99
lea edx, [esi + 0xe]
movzx eax, byte [edx]
xor ecx, ecx
mov ch, byte [edx - 2]
mov cl, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
sub ecx, dword [ebp + 0x14]
jns 0x10068e7f
cmp ecx, 0x80000000
jne 0x10068e7d
mov ecx, 0x7fffffff
jmp 0x10068e7f
neg ecx
cmp ecx, dword [esp + 0x2c]
jge 0x10068e8d
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ecx
add edi, 1
add edx, 4
cmp edi, dword [esp + 0x14]
jb 0x10068e50
mov eax, dword [esp + 0x20]
movzx edx, byte [esi + eax*4 + 0xa]
xor ecx, ecx
mov ch, byte [esi + eax*4 + 8]
mov cl, byte [esi + eax*4 + 9]
movzx eax, byte [esi + eax*4 + 0xb]
shl ecx, 8
or ecx, edx
shl ecx, 8
or eax, ecx
cmp eax, dword [esp + 0x28]
ja 0x10069035
cmp byte [esp + 0xe], 0
je 0x10068ee3
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
je 0x10068ee3
jae 0x10068f80
cmp byte [ebp + 0x18], 2
jne 0x10068f80
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebp + 0x10]
push edx
mov dword [ecx], eax
call fcn.1003fe40
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10068ff4
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
lea eax, [edx - 1]
cmp ecx, eax
jae 0x10068f17
mov edx, dword [esi + edx*4 + 4]
mov dword [esi + ecx*4 + 8], edx
mov edi, dword [ebp + 8]
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
mov byte [esi + 5], dl
mov edx, dword [ebp + 0x10]
shr ecx, 8
mov byte [esi + 6], cl
mov byte [esi + 7], al
mov esi, dword [edx]
mov eax, esi
mov ecx, edi
call fcn.1001b6c0
mov ebx, dword [ebp + 0xc]
neg eax
sbb eax, eax
add eax, 1
push ebx
call fcn.10067d00
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10068f7b
mov eax, dword [ebx]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.1003fe40
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x10068f7b
mov eax, dword [ebx]
call fcn.10024d00
mov byte [esp + 0xe], 0
mov eax, dword [esp + 0x18]
call fcn.10024d00
cmp byte [esp + 0xe], 0
mov dword [esp + 0x18], 0
je 0x10068ff4
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x24]
jmp 0x10068aeb
push 0x100b2e14
push 0xdb98
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
mov dword [esp + 0x10], 0xb
jmp 0x10069182
mov dword [esp + 0x10], eax
jmp 0x10069182
push 0x100b2e14
push 0xdbb4
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
mov dword [esp + 0x10], 0xb
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10069182
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x10069162
mov ecx, eax
call fcn.1001bdb0
jmp 0x10069167
mov eax, 0xdbd6
call fcn.1005f050
mov dword [esp + 0x10], eax
jmp 0x10068ff4
mov eax, esi
call fcn.10024d00
jmp 0x10068ff4
push 0x100b2e14
push 0xdc17
jmp 0x10068fdd
mov eax, dword [edi + 0x44]
xor edx, edx
cmp byte [ebx + 0x13], dl
push eax
sete dl
mov dword [esp + 0x2c], edx
call fcn.1003fe40
add esp, 4
test eax, eax
jne 0x10069220
mov eax, dword [0x100c6560]
xor edx, edx
div dword [ebx + 0x20]
add dword [ebx + 0x2c], 1
mov ecx, dword [ebx + 0x2c]
add eax, 1
cmp ecx, eax
jne 0x1006907f
add ecx, 1
mov dword [ebx + 0x2c], ecx
cmp byte [ebx + 0x11], 0
je 0x100690f8
mov esi, dword [ebx + 0x2c]
mov ecx, esi
mov edi, ebx
call fcn.10013d20
cmp eax, esi
jne 0x100690f8
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0
call fcn.10067d00
mov esi, eax
add esp, 4
test esi, esi
jne 0x100690d1
mov edi, dword [esp + 0x2c]
mov edx, dword [edi + 0x44]
push edx
call fcn.1003fe40
mov esi, eax
add esp, 4
mov eax, edi
call fcn.10024d00
test esi, esi
je 0x100690da
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100c6560]
xor edx, edx
div dword [ebx + 0x20]
add dword [ebx + 0x2c], 1
mov ecx, dword [ebx + 0x2c]
add eax, 1
cmp ecx, eax
jne 0x100690f8
add ecx, 1
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
add eax, 0x1c
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
mov byte [eax + 3], cl
mov ecx, dword [ebp + 0xc]
shr edx, 8
mov byte [eax + 2], dl
mov esi, dword [ebx + 0x2c]
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [esp + 0x28]
push ecx
mov edi, ebx
call fcn.10067d00
add esp, 4
test eax, eax
jne 0x10069220
mov esi, dword [ebp + 0xc]
mov edx, dword [esi]
mov eax, dword [edx + 0x44]
push eax
call fcn.1003fe40
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x100691c6
mov eax, dword [esi]
call fcn.10024d00
jmp 0x100691bf
call fcn.1001ca10
cmp dword [esi + 0x78], 0
jne 0x10069182
mov ecx, dword [esi + 0xdc]
cmp dword [ecx + 0xc], 0
jne 0x10069182
push esi
call fcn.10065200
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100691bf
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x1006919f
mov ecx, eax
call fcn.1001bdb0
jmp 0x100691a4
call fcn.1001ca10
cmp dword [esi + 0x78], 0
jne 0x100691bf
mov edx, dword [esi + 0xdc]
cmp dword [edx + 0xc], 0
jne 0x100691bf
push esi
call fcn.10065200
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x10069213
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax + 0x44]
cmp word [ecx + 0x1a], 1
jle 0x10069205
call fcn.10024d00
push 0x100b2e14
push 0xdc7a
push str.database_corruption_at_line__d_of___.10s_
push 0xb
mov dword [esi], 0
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret