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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x100cbadb
push 0x1010288c
push 0x11152
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x14
lea eax, [edi + 0x15]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100cbaef
push eax
call dword [0x1012731c]
add esp, 4
mov ecx, dword [edi + 0x18]
cmp byte [ecx + 9], 0
je 0x100cbb06
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x100cbb06
call fcn.100d79b0
mov eax, dword [edi]
test eax, eax
je 0x100cbb1d
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100cbb1d
push eax
call dword [0x1012731c]
add esp, 4
mov ebx, dword [edi + 0x1c]
test ebx, ebx
je 0x100cbb32
cmp ebx, 5
je 0x100cbb32
cmp ebx, 6
jne 0x100cc162
cmp dword [edi], 0
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x10], ecx
mov edx, dword [ecx + 4]
mov dword [esp + 0x44], 0
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
je 0x100cbb6b
cmp byte [edx + 0x14], 2
jne 0x100cbb6b
mov ebx, 5
jmp 0x100cbcf2
xor ebx, ebx
cmp byte [ecx + 8], bl
jne 0x100cbcf2
mov esi, edx
cmp byte [ecx + 9], bl
je 0x100cbb8e
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], bl
jne 0x100cbb8e
call fcn.100d79b0
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 8]
cmp al, 2
je 0x100cbcda
cmp al, 1
je 0x100cbcda
movzx edx, word [esi + 0x18]
test dl, dl
jns 0x100cbbba
mov eax, dword [esi + 0x50]
cmp dword [eax], ebx
je 0x100cbbba
mov ebx, 0x106
jmp 0x100cbcda
mov eax, dword [ecx + 4]
cmp byte [ecx + 9], bl
je 0x100cbbf7
cmp dword [eax + 0x50], ecx
je 0x100cbbd7
test byte [eax + 0x18], 0x40
je 0x100cbbd7
mov ebx, 0x106
jmp 0x100cbcda
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x100cbbf7
mov edi, edi
cmp dword [eax], ecx
je 0x100cbbf0
cmp dword [eax + 4], 1
jne 0x100cbbf0
cmp byte [eax + 8], 1
jne 0x100cbbb0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x100cbbe0
xor ebx, ebx
and edx, 0xffef
mov word [esi + 0x18], dx
cmp dword [esi + 0x30], ebx
jne 0x100cbc10
or edx, 0x10
mov word [esi + 0x18], dx
nop
cmp dword [esi + 0xc], 0
jne 0x100cbc25
mov ecx, esi
call fcn.100d4920
mov ebx, eax
test ebx, ebx
je 0x100cbc10
jmp 0x100cbc29
test ebx, ebx
je 0x100cbc61
cmp byte [esi + 0x14], 0
jne 0x100cbc61
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x100cbc61
mov dword [esi + 0xc], 0
mov ecx, dword [ecx + 0x48]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x44], eax
call fcn.100e2fe0
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0xe0]
cmp dword [eax + 0xc], 0
jne 0x100cbc61
call fcn.100dfb30
cmp bl, 5
jne 0x100cbca7
cmp byte [esi + 0x14], 0
jne 0x100cbca7
mov eax, dword [esi + 4]
add eax, 0x18c
mov dword [esp + 0x24], eax
je 0x100cbca7
mov ecx, dword [eax]
test ecx, ecx
je 0x100cbca7
mov edx, dword [eax + 8]
test edx, edx
js 0x100cbca7
push edx
push dword [eax + 4]
call ecx
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
je 0x100cbca0
inc dword [eax + 8]
jmp 0x100cbc10
mov dword [eax + 8], 0xffffffff
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x100cbcda
cmp byte [ecx + 8], bl
jne 0x100cbccc
inc dword [esi + 0x2c]
cmp byte [ecx + 9], bl
je 0x100cbccc
mov byte [ecx + 0x28], 1
mov eax, dword [esi + 0x4c]
mov dword [ecx + 0x2c], eax
lea eax, [ecx + 0x20]
mov dword [esi + 0x4c], eax
mov byte [ecx + 8], 1
cmp byte [esi + 0x14], 1
jae 0x100cbcda
mov byte [esi + 0x14], 1
cmp byte [ecx + 9], 0
je 0x100cbcea
dec dword [ecx + 0xc]
jne 0x100cbcea
call fcn.100d7a70
mov dword [esp + 0x44], 1
cmp dword [edi + 0xc], 0
jne 0x100cbd1c
test ebx, ebx
jne 0x100cbd52
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 4]
push ebx
mov edx, dword [eax + 0x24]
push 0xffffffffffffffff
call fcn.100d4d90
add esp, 8
cmp eax, 7
jne 0x100cbd20
mov ebx, eax
jmp 0x100cbd52
test ebx, ebx
jne 0x100cbd52
cmp dword [edi + 0xc], 0
jne 0x100cbd52
mov ecx, dword [edi + 4]
mov edx, 2
call fcn.100d4550
mov ebx, eax
test ebx, ebx
jne 0x100cbd52
mov ecx, dword [edi + 4]
lea eax, [edi + 8]
push eax
lea edx, [ebx + 1]
mov dword [edi + 0xc], 1
call fcn.100cdec0
add esp, 4
mov eax, dword [edi + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [edi + 4]
mov esi, dword [edx + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], esi
mov ecx, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
movzx eax, byte [eax + 5]
mov dword [esp + 0x40], eax
test ebx, ebx
jne 0x100cbd89
cmp eax, 5
jne 0x100cbd89
mov eax, 8
cmp esi, ecx
cmovne ebx, eax
mov edx, dword [edx + 0x30]
mov dword [esp + 0xc], edx
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
test ecx, ecx
js 0x100cbda1
cmp eax, ecx
jge 0x100cbe17
mov esi, dword [edi + 0x10]
cmp esi, edx
ja 0x100cbe17
test ebx, ebx
jne 0x100cbe52
mov eax, dword [edi + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x101270ac]
div dword [ecx + 0x24]
inc eax
cmp esi, eax
je 0x100cbe06
push 2
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
push esi
push eax
mov eax, dword [eax + 0xc8]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cbe06
mov eax, dword [esp + 0x24]
push ebx
push dword [eax + 4]
mov edx, esi
mov ecx, edi
call fcn.100cc2f0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov ebx, eax
test ecx, ecx
je 0x100cbe06
call fcn.100dc4d0
mov eax, dword [esp + 0x20]
inc dword [edi + 0x10]
mov edx, dword [esp + 0xc]
inc eax
jmp 0x100cbd92
test ebx, ebx
jne 0x100cbe52
mov eax, edx
sub eax, dword [edi + 0x10]
mov dword [edi + 0x24], edx
inc eax
mov dword [edi + 0x20], eax
cmp dword [edi + 0x10], edx
ja 0x100cbe5b
cmp dword [edi + 0x28], ebx
jne 0x100cc136
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov dword [edi + 0x2c], eax
mov dword [ecx + 0x58], edi
mov dword [edi + 0x28], 1
jmp 0x100cc136
cmp ebx, 0x65
jne 0x100cc136
test edx, edx
jne 0x100cbeb0
mov esi, dword [edi + 4]
cmp byte [esi + 9], dl
je 0x100cbe76
inc dword [esi + 0xc]
cmp byte [esi + 0xa], dl
jne 0x100cbe76
mov ecx, esi
call fcn.100d79b0
mov eax, dword [esi + 4]
mov dword [eax + 0x30], 0
mov ecx, dword [esi + 4]
call fcn.100d4830
cmp byte [esi + 9], 0
mov ebx, eax
je 0x100cbe9c
dec dword [esi + 0xc]
jne 0x100cbe9c
mov ecx, esi
call fcn.100d7a70
mov esi, 1
mov dword [esp + 0xc], esi
test ebx, ebx
je 0x100cbeb4
cmp ebx, 0x65
jne 0x100cbecb
jmp 0x100cbeb4
mov esi, dword [esp + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
inc eax
push eax
mov edx, 1
call fcn.100cddf0
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x100cc136
mov ecx, dword [edi]
test ecx, ecx
je 0x100cbede
call fcn.100a5fc0
cmp dword [esp + 0x40], 5
jne 0x100cbefc
mov ecx, dword [edi + 4]
mov edx, 2
call fcn.100cc960
mov ebx, eax
test ebx, ebx
jne 0x100cc136
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x100cbf37
mov eax, ecx
cdq
idiv dword [esp + 0x10]
mov ecx, eax
lea eax, [ecx - 1]
add eax, esi
cdq
idiv ecx
xor edx, edx
mov esi, eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x101270ac]
div dword [ecx + 0x24]
mov ecx, dword [esp + 0xc]
inc eax
cmp esi, eax
jne 0x100cbf43
dec esi
jmp 0x100cbf43
cdq
idiv ecx
mov ecx, dword [esp + 0xc]
mov esi, eax
imul esi, ecx
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jge 0x100cc24e
cdq
mov dword [esp + 0x20], edx
push dword [esp + 0x20]
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
mov eax, ecx
cdq
push edx
push eax
call fcn.100070f0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
cmp esi, eax
ja 0x100cbfe0
mov eax, dword [edi + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x101270ac]
div dword [ecx + 0x24]
inc eax
cmp esi, eax
je 0x100cbfd5
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
mov eax, dword [eax + 0xc8]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cbfd5
mov ecx, dword [esp + 0x24]
call fcn.100dbe00
mov ecx, dword [esp + 0x24]
mov ebx, eax
test ecx, ecx
je 0x100cbfd5
call fcn.100dc4d0
mov eax, dword [esp + 0x34]
inc esi
test ebx, ebx
je 0x100cbf86
jmp 0x100cbff6
test ebx, ebx
jne 0x100cbff6
mov ecx, dword [esp + 0x14]
push 1
xor edx, edx
call fcn.100dbb20
add esp, 4
mov ebx, eax
mov eax, dword [0x101270ac]
add eax, dword [esp + 0x18]
cdq
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
cmp eax, edx
jg 0x100cc020
jl 0x100cc02e
mov eax, dword [esp + 0xc]
cmp ecx, eax
jae 0x100cc024
jmp 0x100cc02e
mov eax, dword [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
mov eax, dword [0x101270ac]
add eax, dword [esp + 0x10]
cdq
mov esi, eax
mov dword [esp + 0x30], eax
mov eax, edx
mov dword [esp + 0x24], edx
test ebx, ebx
jne 0x100cc136
lea esp, [esp]
cmp eax, dword [esp + 0x28]
jg 0x100cc1a9
jl 0x100cc064
cmp esi, ecx
jae 0x100cc1a9
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x28]
mov dword [esp + 0x24], 0
push dword [esp + 0x28]
push eax
push esi
call fcn.10003f80
inc eax
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [eax + 0xc8]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cc0bb
push dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
push esi
push dword [esp + 0x18]
mov ecx, dword [edx]
push dword [eax + 4]
mov eax, dword [ecx + 0xc]
push edx
call eax
add esp, 0x14
mov ebx, eax
mov edx, dword [esp + 0x18]
test edx, edx
je 0x100cc113
test byte [edx + 0x1c], 0x20
je 0x100cc10c
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]
mov edi, dword [esi]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.100070f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x40]
add esp, 0x10
jmp 0x100cc113
mov ecx, edx
call fcn.100e2fe0
add esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
adc eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x100cc050
mov edi, dword [ebp + 8]
cmp dword [esp + 0x44], 0
je 0x100cc151
mov ecx, dword [edi + 0x18]
xor edx, edx
call fcn.100d3b90
mov ecx, dword [edi + 0x18]
xor edx, edx
call fcn.100d3a10
mov eax, 7
cmp ebx, 0xc0a
cmove ebx, eax
mov dword [edi + 0x1c], ebx
mov eax, dword [edi]
test eax, eax
je 0x100cc179
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100cc179
push eax
call dword [0x10127324]
add esp, 4
mov ecx, dword [edi + 0x18]
cmp byte [ecx + 9], 0
je 0x100cc18c
dec dword [ecx + 0xc]
jne 0x100cc18c
call fcn.100d7a70
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100cc1a0
push eax
call dword [0x10127324]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x100cc133
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x38]
mov eax, dword [esi]
push ecx
mov eax, dword [eax + 0x18]
push esi
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100cc133
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x3c], ecx
jl 0x100cc1f3
jg 0x100cc1e1
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x38], eax
jbe 0x100cc1f3
mov eax, dword [esi]
push ecx
push dword [esp + 0x10]
mov eax, dword [eax + 0x10]
push esi
call eax
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x100cc133
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c]
cmp dword [ecx], ebx
je 0x100cc223
mov eax, dword [ecx]
push ebx
mov eax, dword [eax + 0x28]
push 0x15
push ecx
call eax
mov ebx, eax
add esp, 0xc
cmp ebx, 0xc
jne 0x100cc21f
xor ebx, ebx
jmp 0x100cc223
test ebx, ebx
jne 0x100cc249
cmp byte [esi + 7], 0
jne 0x100cc249
movzx ecx, byte [esi + 0xa]
mov edx, dword [esi + 0x3c]
test ecx, ecx
je 0x100cc247
mov eax, dword [edx]
push ecx
mov eax, dword [eax + 0x14]
push edx
call eax
mov edi, dword [ebp + 8]
add esp, 8
mov ebx, eax
jmp 0x100cc265
xor ebx, ebx
mov edi, dword [ebp + 8]
jmp 0x100cc265
mov eax, dword [esp + 0x14]
push 0
xor edx, edx
mov ecx, eax
mov dword [eax + 0x18], esi
call fcn.100dbb20
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x100cc136
mov ecx, dword [edi + 4]
xor edx, edx
call fcn.100d3a10
mov ebx, eax
mov eax, 0x65
test ebx, ebx
cmove ebx, eax
jmp 0x100cc136