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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor edi, edi
test esi, esi
mov dword [esp + 0x14], ebx
jge 0x10099774
mov eax, dword [ebp + 8]
cmp dword [eax + 0xfc], ebx
je 0x10099774
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov dword [esp + 0x20], ebx
call fcn.10056310
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10099774
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10099774
mov edi, dword [ebp + 0x24]
push eax
call fcn.10084700
add esp, 4
mov edi, eax
cmp esi, 0xffffffff
je 0x10099e18
test edi, edi
jne 0x10099e18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov eax, dword [ebp + 0xc]
call fcn.1008c300
mov ebx, dword [esp + 0x20]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10099e18
jmp 0x100997b0
push ebx
call sym.SQLite.Interop.dll_sqlite3_step
mov edi, eax
add esp, 4
cmp edi, 0x64
jne 0x10099e18
test ebx, ebx
mov dword [esp + 0x14], 0
je 0x10099820
cmp dword [ebx + 0x14], 0
je 0x100997f8
cmp word [ebx + 0x54], 1
jbe 0x100997f8
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100997f0
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx + 0x14]
add ecx, 0x28
jmp 0x10099825
mov eax, dword [ebx]
test eax, eax
je 0x10099820
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009980f
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov ecx, 0x100abb60
call fcn.100204a0
test ebx, ebx
mov esi, eax
mov dword [esp + 0x34], edx
je 0x10099887
mov edi, dword [ebx]
test edi, edi
mov ecx, dword [ebx + 0x50]
je 0x1009986a
cmp byte [edi + 0x40], 0
jne 0x1009984b
cmp ecx, 0xc0a
jne 0x10099865
push 0
mov eax, 7
mov ecx, edi
call fcn.100410b0
add esp, 4
mov byte [edi + 0x40], 0
mov ecx, 7
mov eax, dword [edi + 0x38]
jmp 0x1009986f
mov eax, 0xff
mov edx, dword [ebx]
and eax, ecx
mov dword [ebx + 0x50], eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x10099887
push eax
call dword [0x100c64ac]
add esp, 4
test ebx, ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
je 0x100998e7
cmp dword [ebx + 0x14], 0
je 0x100998bf
cmp word [ebx + 0x54], 2
jbe 0x100998bf
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100998b7
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx + 0x14]
add ecx, 0x50
jmp 0x100998ec
mov eax, dword [ebx]
test eax, eax
je 0x100998e7
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100998d6
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov ecx, 0x100abb60
call fcn.100204a0
test ebx, ebx
mov esi, eax
mov dword [esp + 0x3c], edx
je 0x1009994e
mov edi, dword [ebx]
test edi, edi
mov ecx, dword [ebx + 0x50]
je 0x10099931
cmp byte [edi + 0x40], 0
jne 0x10099912
cmp ecx, 0xc0a
jne 0x1009992c
push 0
mov eax, 7
mov ecx, edi
call fcn.100410b0
add esp, 4
mov byte [edi + 0x40], 0
mov ecx, 7
mov eax, dword [edi + 0x38]
jmp 0x10099936
mov eax, 0xff
mov edx, dword [ebx]
and eax, ecx
mov dword [ebx + 0x50], eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1009994e
push eax
call dword [0x100c64ac]
add esp, 4
test ebx, ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
je 0x100999ae
cmp dword [ebx + 0x14], 0
je 0x10099986
cmp word [ebx + 0x54], 3
jbe 0x10099986
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1009997e
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx + 0x14]
add ecx, 0x78
jmp 0x100999b3
mov eax, dword [ebx]
test eax, eax
je 0x100999ae
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009999d
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov ecx, 0x100abb60
call fcn.100204a0
test ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
je 0x10099a6e
mov edi, dword [ebx]
test edi, edi
mov ecx, dword [ebx + 0x50]
je 0x100999fe
cmp byte [edi + 0x40], 0
jne 0x100999df
cmp ecx, 0xc0a
jne 0x100999f9
push 0
mov eax, 7
mov ecx, edi
call fcn.100410b0
add esp, 4
mov byte [edi + 0x40], 0
mov ecx, 7
mov eax, dword [edi + 0x38]
jmp 0x10099a03
mov eax, 0xff
mov edx, dword [ebx]
and eax, ecx
mov dword [ebx + 0x50], eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x10099a1b
push eax
call dword [0x100c64ac]
add esp, 4
cmp dword [ebx + 0x14], 0
je 0x10099a46
cmp word [ebx + 0x54], 4
jbe 0x10099a46
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10099a3b
push eax
call dword [0x100c64a4]
add esp, 4
mov edi, dword [ebx + 0x14]
add edi, 0xa0
jmp 0x10099a73
mov eax, dword [ebx]
test eax, eax
je 0x10099a6e
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10099a5d
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov edi, 0x100abb60
movzx ecx, word [edi + 0x1c]
test cl, 0x10
jne 0x10099ae2
test cl, 1
jne 0x10099ad8
movzx edx, cl
shr dl, 3
and edx, 2
mov eax, edx
or eax, ecx
test eax, 0x4000
mov word [edi + 0x1c], ax
je 0x10099aa0
mov eax, edi
call fcn.10036000
test byte [edi + 0x1c], 2
je 0x10099ac0
cmp byte [edi + 0x1e], 1
je 0x10099ab7
push 1
push edi
call fcn.100363d0
add esp, 8
mov eax, edi
call fcn.10035fb0
jmp 0x10099acc
mov esi, 1
mov eax, edi
call fcn.1003fd90
cmp byte [edi + 0x1e], 1
jne 0x10099ad8
cmp dword [edi + 4], 0
jne 0x10099ae2
mov dword [esp + 0x10], 0
jmp 0x10099af4
test word [edi + 0x1c], 0x4000
mov eax, dword [edi + 0x18]
je 0x10099af0
add eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x10099ba2
mov edi, dword [ebx]
test edi, edi
mov ecx, dword [ebx + 0x50]
je 0x10099b32
cmp byte [edi + 0x40], 0
jne 0x10099b13
cmp ecx, 0xc0a
jne 0x10099b2d
push 0
mov eax, 7
mov ecx, edi
call fcn.100410b0
add esp, 4
mov byte [edi + 0x40], 0
mov ecx, 7
mov eax, dword [edi + 0x38]
jmp 0x10099b37
mov eax, 0xff
and eax, ecx
mov ecx, dword [ebx]
mov dword [ebx + 0x50], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10099b4f
push eax
call dword [0x100c64ac]
add esp, 4
cmp dword [ebx + 0x14], 0
je 0x10099b7a
cmp word [ebx + 0x54], 4
jbe 0x10099b7a
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x10099b6f
push eax
call dword [0x100c64a4]
add esp, 4
mov edi, dword [ebx + 0x14]
add edi, 0xa0
jmp 0x10099ba7
mov eax, dword [ebx]
test eax, eax
je 0x10099ba2
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10099b91
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov edi, 0x100abb60
movzx ecx, word [edi + 0x1c]
test cl, 0x12
je 0x10099c0a
test ecx, 0x4000
je 0x10099bf6
mov eax, dword [edi + 0x10]
add eax, dword [edi + 0x18]
test eax, eax
jg 0x10099bc7
mov eax, 1
push 1
call fcn.10030460
add esp, 4
test eax, eax
jne 0x10099bf6
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
add ecx, dword [edi + 0x18]
push eax
push 0
push ecx
call fcn.10003bb0
mov edx, dword [edi + 0x10]
add dword [edi + 0x18], edx
add esp, 0xc
and word [edi + 0x1c], 0xbdff
or word [edi + 0x1c], 0x10
cmp dword [edi + 0x18], 0
je 0x10099c06
mov esi, dword [edi + 4]
jmp 0x10099c67
xor esi, esi
jmp 0x10099c67
test cl, 1
jne 0x10099c63
movzx eax, cl
shr al, 3
and eax, 2
or eax, ecx
test eax, 0x4000
mov word [edi + 0x1c], ax
je 0x10099c2c
mov eax, edi
call fcn.10036000
test byte [edi + 0x1c], 2
je 0x10099c4c
cmp byte [edi + 0x1e], 1
je 0x10099c43
push 1
push edi
call fcn.100363d0
add esp, 8
mov eax, edi
call fcn.10035fb0
jmp 0x10099c58
mov esi, 1
mov eax, edi
call fcn.1003fd90
cmp byte [edi + 0x1e], 1
jne 0x10099c63
mov edi, dword [edi + 4]
jmp 0x10099c65
xor edi, edi
mov esi, edi
test ebx, ebx
je 0x10099cbe
mov edi, dword [ebx]
test edi, edi
mov ecx, dword [ebx + 0x50]
je 0x10099ca1
cmp byte [edi + 0x40], 0
jne 0x10099c82
cmp ecx, 0xc0a
jne 0x10099c9c
push 0
mov eax, 7
mov ecx, edi
call fcn.100410b0
add esp, 4
mov byte [edi + 0x40], 0
mov ecx, 7
mov eax, dword [edi + 0x38]
jmp 0x10099ca6
mov eax, 0xff
and eax, ecx
mov ecx, dword [ebx]
mov dword [ebx + 0x50], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10099cbe
push eax
call dword [0x100c64ac]
add esp, 4
mov edx, dword [esp + 0x18]
or edx, dword [esp + 0x1c]
je 0x10099d24
cmp dword [ebp + 0x14], 0
je 0x10099d24
mov eax, dword [ebp + 0x1c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x20]
and eax, ecx
mov ecx, dword [ebp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
push esi
push ecx
push edx
push eax
call fcn.10097890
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x10099e18
cmp dword [ebp + 0x1c], eax
jne 0x10099d37
cmp dword [ebp + 0x20], eax
jne 0x10099d37
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
lea eax, [edi + 1]
jmp 0x10099d39
cmp dword [ebp + 0x1c], 0
jne 0x10099d37
cmp dword [ebp + 0x20], 0
jne 0x10099d37
mov eax, 1
jmp 0x10099d39
xor eax, eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push esi
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 4]
add ecx, 1
push ecx
call fcn.10028600
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x10099e18
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + 4]
mov edx, eax
and edx, 0x8000000f
jns 0x10099d94
dec edx
or edx, 0xfffffff0
inc edx
jne 0x10099dbd
lea edi, [eax*4 + 0x40]
mov eax, ecx
mov esi, dword [eax]
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x10099dd2
push edi
push esi
call fcn.10027720
add esp, 8
test eax, eax
je 0x10099dd2
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov esi, dword [esp + 0x14]
mov dword [eax + edx*4], esi
add dword [ecx + 4], 1
jmp 0x100997b0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10099e0a
cmp dword [esi + 0x38], 0
jne 0x10099e0a
mov ecx, dword [esi + 0x40]
push ecx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
cmp byte [esi + 5], 0
jne 0x10099e0a
mov edx, dword [esi + 0x28]
push edx
call sym.SQLite.Interop.dll_sqlite3_free
mov eax, dword [esi + 0x34]
add esp, 4
push eax
call sym.SQLite.Interop.dll_sqlite3_blob_close
add esp, 4
push esi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov edi, 7
push ebx
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
cmp edi, 0x65
je 0x10099e28
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret