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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x100c58c0]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [esp + 0x30], ecx
xor ecx, ecx
cmp esi, ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], ecx
je 0x1006b1eb
cmp byte [esi], cl
je 0x1006b1eb
xor ebx, ebx
jmp 0x1006b1f0
mov ebx, 1
cmp esi, ecx
je 0x1006b204
mov edi, str.:memory:
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1006b219
test ebx, ebx
je 0x1006b20e
cmp byte [eax + 0x3f], 2
je 0x1006b219
mov ecx, dword [ebp + 0x14]
test cl, cl
js 0x1006b219
xor eax, eax
jmp 0x1006b225
or dword [ebp + 0x10], 2
mov ecx, dword [ebp + 0x14]
mov eax, 1
test ecx, 0x100
mov dword [esp + 0x30], eax
je 0x1006b248
test eax, eax
jne 0x1006b239
test ebx, ebx
je 0x1006b248
and ecx, 0xfffffeff
or ecx, 0x200
mov dword [ebp + 0x14], ecx
push 0x2c
call fcn.10025930
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x20], edi
je 0x1006b2cc
push 0x2c
push 0
push edi
call fcn.10003bb0
mov eax, dword [esp + 0x20]
add esp, 0xc
test ebx, ebx
mov byte [edi + 8], 0
mov dword [edi], eax
mov dword [edi + 0x1c], edi
mov dword [edi + 0x20], 1
jne 0x1006b47f
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x1006b297
test byte [ebp + 0x14], 0x40
je 0x1006b47f
test dword [ebp + 0x14], 0x20000
je 0x1006b47f
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 8]
add esi, 1
push esi
call fcn.10025930
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
mov byte [edi + 9], 1
jne 0x1006b2e6
push edi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100019b7
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1006b323
mov ecx, dword [esp + 0x1c]
call fcn.10016110
mov edx, dword [esp + 0x18]
add eax, 1
push eax
push ecx
push edx
call fcn.10008750
add esp, 0xc
cmp dword [0x100c6454], 0
jne 0x1006b36f
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x1006b3bc
mov ebx, eax
mov eax, dword [esp + 0x1c]
push ebx
push esi
push eax
mov eax, dword [esp + 0x30]
mov byte [ebx], 0
mov ecx, dword [eax + 0x24]
push eax
call ecx
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [esp + 0x10], esi
je 0x1006b305
push ebx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
push edi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100019b7
mov esp, ebp
pop ebp
ret
push 4
call dword [0x100c649c]
add esp, 4
test eax, eax
mov dword [esp + 0x28], eax
je 0x1006b38c
push eax
call dword [0x100c64a4]
add esp, 4
cmp dword [0x100c6454], 0
jne 0x1006b39f
mov dword [esp + 0x2c], 0
jmp 0x1006b3bc
push 2
call dword [0x100c649c]
add esp, 4
test eax, eax
mov dword [esp + 0x2c], eax
je 0x1006b3bc
push eax
call dword [0x100c64a4]
add esp, 4
mov eax, dword [0x100c86dc]
test eax, eax
mov ebx, eax
je 0x1006b458
jmp 0x1006b3d0
mov esi, dword [ebx]
mov ecx, dword [esi + 0xa8]
mov eax, dword [esp + 0x18]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006b400
test dl, dl
je 0x1006b3fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006b400
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006b3e0
xor eax, eax
jmp 0x1006b405
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006b411
mov edx, dword [esp + 0x24]
cmp dword [esi], edx
je 0x1006b420
mov eax, dword [ebx + 0x44]
test eax, eax
mov dword [esp + 0xc], eax
mov ebx, eax
jne 0x1006b3d0
jmp 0x1006b458
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x14]
sub eax, 1
js 0x1006b451
mov ecx, dword [ecx + 0x10]
mov edx, eax
shl edx, 4
lea ecx, [ecx + edx + 4]
mov edx, dword [ecx]
test edx, edx
je 0x1006b447
cmp dword [edx + 4], ebx
je 0x1006b4ec
sub eax, 1
sub ecx, 0x10
test eax, eax
jge 0x1006b438
mov dword [edi + 4], ebx
add dword [ebx + 0x40], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1006b46a
push eax
call dword [0x100c64ac]
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
test ebx, ebx
jne 0x1006b6f4
push 0x54
call fcn.10025930
mov edi, eax
add esp, 4
test edi, edi
je 0x1006b49c
push 0x54
push 0
push edi
call fcn.10003bb0
add esp, 0xc
test edi, edi
mov dword [esp + 0xc], edi
jne 0x1006b540
mov dword [esp + 0x10], 7
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x1006b4c7
mov eax, dword [ebx]
test eax, eax
je 0x1006b4c7
push eax
call fcn.10065da0
add esp, 4
push ebx
call sym.SQLite.Interop.dll_sqlite3_free
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call sym.SQLite.Interop.dll_sqlite3_free
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [ecx], 0
jmp 0x1006b836
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1006b4fe
push eax
call dword [0x100c64ac]
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1006b510
push eax
call dword [0x100c64ac]
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
push edi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, 0x13
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100019b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ebx, dword [ebp + 0x10]
push ecx
push edx
push edi
push eax
mov ecx, ebx
call fcn.10069a40
add esp, 0x10
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1006b4b0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x28]
mov eax, dword [edi]
mov dword [eax + 0x80], edx
mov ecx, dword [ecx + 0x2c]
mov dword [eax + 0x84], ecx
call fcn.1001bee0
mov edx, dword [edi]
push edx
lea esi, [esp + 0x3c]
call fcn.1001be40
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1006b4b0
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov byte [edi + 0x10], bl
lea ecx, [eax + 0xb0]
mov dword [eax + 0xb4], edi
mov eax, dword [eax + 0x3c]
xor esi, esi
mov dword [ecx], 0x10013c80
cmp dword [eax], esi
je 0x1006b5d5
mov edx, dword [eax]
push ecx
push 0xf
push eax
mov eax, dword [edx + 0x28]
call eax
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], edi
mov edx, dword [edi]
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
cmp byte [edx + 0xe], 0
je 0x1006b5ef
or word [edi + 0x16], 1
movzx eax, byte [esp + 0x49]
movzx ecx, byte [esp + 0x48]
shl eax, 8
or eax, ecx
shl eax, 8
cmp eax, 0x200
lea ecx, [edi + 0x20]
mov dword [ecx], eax
jb 0x1006b678
cmp eax, 0x10000
ja 0x1006b678
lea ebx, [eax - 1]
test eax, ebx
jne 0x1006b678
mov al, byte [esp + 0x4c]
or word [edi + 0x16], 2
movzx esi, byte [esp + 0x6c]
movzx ebx, byte [esp + 0x6d]
shl esi, 8
or esi, ebx
movzx ebx, byte [esp + 0x6e]
shl esi, 8
or esi, ebx
movzx ebx, byte [esp + 0x6f]
shl esi, 8
or esi, ebx
setne bl
mov byte [edi + 0x11], bl
movzx esi, byte [esp + 0x78]
movzx ebx, byte [esp + 0x79]
shl esi, 8
or esi, ebx
movzx ebx, byte [esp + 0x7a]
shl esi, 8
or esi, ebx
movzx ebx, byte [esp + 0x7b]
shl esi, 8
or esi, ebx
setne bl
mov byte [edi + 0x12], bl
jmp 0x1006b690
cmp dword [esp + 0x1c], esi
mov dword [ecx], esi
je 0x1006b68e
cmp dword [esp + 0x30], esi
jne 0x1006b68e
mov byte [edi + 0x11], 0
mov byte [edi + 0x12], 0
xor al, al
movzx esi, al
push esi
push ecx
mov ebx, edx
call fcn.1002d6f0
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1006b4b0
mov edx, dword [edi + 0x20]
mov eax, dword [esp + 0x20]
sub edx, esi
mov dword [edi + 0x24], edx
cmp byte [eax + 9], 0
je 0x1006b6f0
mov dword [edi + 0x40], 1
cmp dword [0x100c6454], 0
jne 0x1006b733
xor esi, esi
push esi
call sym.SQLite.Interop.dll_sqlite3_mutex_enter
mov edx, dword [0x100c86dc]
add esp, 4
push esi
mov dword [edi + 0x44], edx
mov dword [0x100c86dc], edi
call sym.SQLite.Interop.dll_sqlite3_mutex_leave
add esp, 4
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x20]
cmp byte [esi + 9], 0
je 0x1006b7c9
mov edi, dword [esp + 0x14]
xor edx, edx
cmp dword [edi + 0x14], edx
jle 0x1006b7c9
mov ecx, dword [edi + 0x10]
add ecx, 4
mov eax, dword [ecx]
test eax, eax
je 0x1006b723
cmp byte [eax + 9], 0
jne 0x1006b773
add edx, 1
add ecx, 0x10
cmp edx, dword [edi + 0x14]
jl 0x1006b717
jmp 0x1006b7c9
push 2
call dword [0x100c649c]
add esp, 4
cmp dword [0x100c6454], 0
mov esi, eax
je 0x1006b6cf
push 0
call dword [0x100c649c]
add esp, 4
test eax, eax
mov dword [edi + 0x38], eax
jne 0x1006b6cf
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 7
mov byte [ecx + 0x40], al
jmp 0x1006b4b0
cmp dword [eax + 0x18], 0
je 0x1006b789
lea esp, [esp]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x18], 0
jne 0x1006b780
mov edx, dword [esi + 4]
cmp edx, dword [eax + 4]
jae 0x1006b7a0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [eax + 0x18], esi
jmp 0x1006b7c9
cmp dword [eax + 0x14], 0
je 0x1006b7b6
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 4], edx
jae 0x1006b7b6
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x1006b7a6
mov ecx, dword [eax + 0x14]
test ecx, ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], eax
je 0x1006b7c6
mov dword [ecx + 0x18], esi
mov dword [eax + 0x14], esi
cmp dword [esp + 0x10], 0
mov edx, dword [esp + 0x34]
mov dword [edx], esi
jne 0x1006b4b4
mov ebx, dword [esi + 4]
mov edi, esi
call fcn.100207e0
cmp byte [esi + 9], 0
je 0x1006b808
add dword [esi + 0xc], 0xffffffff
jne 0x1006b808
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x1006b804
push eax
call dword [0x100c64ac]
add esp, 4
mov byte [esi + 0xa], 0
cmp dword [ebx + 0x30], 0
jne 0x1006b836
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xdc]
mov dword [eax + 0x10], 0x7d0
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1006b836
push 0x7d0
push eax
call dword [0x100c64cc]
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1006b848
push eax
call dword [0x100c64ac]
add esp, 4
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100019b7
mov esp, ebp
pop ebp
ret