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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, edx
mov dword [esp + 0x10], ecx
push esi
xor ebx, ebx
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [eax], ebx
call sym.WMCommon.dll_sqlite3_initialize
test eax, eax
jne 0x10199ff5
mov edi, dword [ebp + 8]
cmp byte [0x1031bda4], bl
jne 0x10199a74
mov dword [esp + 0xc], ebx
jmp 0x10199a9f
test edi, 0x8000
je 0x10199a82
mov dword [esp + 0xc], ebx
jmp 0x10199a9f
test edi, 0x10000
je 0x10199a94
mov dword [esp + 0xc], 1
jmp 0x10199a9f
movzx eax, byte [0x1031bda5]
mov dword [esp + 0xc], eax
test edi, 0x40000
je 0x10199aaf
and edi, 0xfffdffff
jmp 0x10199abd
cmp dword [0x1031be68], ebx
je 0x10199abd
or edi, 0x20000
push 0
and edi, 0xfff600e7
push 0x218
mov dword [ebp + 8], edi
call fcn.102373b0
mov esi, eax
add esp, 8
test esi, esi
je 0x10199ec6
push 0x218
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x10199ec6
cmp dword [esp + 0xc], ebx
je 0x10199b2b
cmp byte [0x1031bda4], bl
jne 0x10199b09
xor eax, eax
jmp 0x10199b14
push 1
call dword [0x1031bde8]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x10199b2b
push esi
call sym.WMCommon.dll_sqlite3_free
add esp, 4
xor esi, esi
jmp 0x10199ec6
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10199b3c
push eax
call dword [0x1031bdf0]
add esp, 4
mov eax, edi
mov dword [esi + 0x14], 2
and eax, 0x2000000
mov byte [esi + 0x61], 0x6d
neg eax
mov dword [esi + 0x130], 1
push 0
sbb eax, eax
mov edx, 0x1025cd44
and eax, 0xffffff00
mov ecx, esi
add eax, 0xff
mov dword [esi + 0x48], eax
lea eax, [esi + 0x1c8]
mov dword [esi + 0x10], eax
xor eax, eax
mov word [esi + 0x134], ax
movups xmm0, xmmword [0x1025c674]
push fcn.1019c800
push 0
movups xmmword [esi + 0x78], xmm0
push 1
movups xmm0, xmmword [0x1025c684]
movups xmmword [esi + 0x88], xmm0
movups xmm0, xmmword [0x1025c694]
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa4], eax
mov byte [esi + 0x55], 1
mov byte [esi + 0x5a], 0xff
mov eax, dword [0x1031be48]
mov dword [esi + 0x30], eax
mov eax, dword [0x1031be4c]
or dword [esi + 0x20], 0xe00480e0
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x64], ebx
mov dword [esi + 0xb8], 0x1031cf10
mov dword [esi + 0x24], eax
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1ac], ebx
mov dword [esi + 0x1b8], ebx
mov dword [esi + 0x188], ebx
mov dword [esi + 0x184], ebx
mov dword [esi + 0x180], ebx
mov dword [esi + 0x18c], ebx
call fcn.1019a700
push 0
push fcn.1019c800
push 0
push 3
mov edx, 0x1025cd44
mov ecx, esi
call fcn.1019a700
push 0
push fcn.1019c800
push 0
push 2
mov edx, 0x1025cd44
mov ecx, esi
call fcn.1019a700
push 0
push 0x1019c760
push 0
push 1
mov edx, str.NOCASE
mov ecx, esi
call fcn.1019a700
add esp, 0x40
mov edx, str.RTRIM
mov ecx, esi
push 0
push 0x1019c7b0
push 0
push 1
call fcn.1019a700
add esp, 0x10
cmp byte [esi + 0x57], bl
jne 0x10199eb5
mov dword [esi + 0x3c], edi
mov eax, 1
and edi, 7
mov ecx, edi
shl eax, cl
test al, 0x46
jne 0x10199cc4
push 0x10281ad4
push 0x2a78a
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.WMCommon.dll_sqlite3_log
add esp, 0x14
mov edi, 0x15
jmp 0x10199cf8
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [ebp + 8]
push esi
push eax
call fcn.1019a0b0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10199d1b
cmp edi, 7
jne 0x10199cf4
mov ecx, esi
call fcn.10236ab0
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov eax, 0x10279434
test ebx, ebx
push ebx
cmove eax, ecx
push eax
push edi
push esi
call fcn.10233a40
push ebx
call sym.WMCommon.dll_sqlite3_free
add esp, 0x14
jmp 0x10199eb5
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x14]
or eax, 0x100
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 0x10]
push 0
add eax, 4
push eax
push esi
call fcn.1021de30
add esp, 0x10
test eax, eax
je 0x10199d6c
cmp eax, 0xc0a
mov ecx, 7
cmove eax, ecx
mov ecx, esi
mov dword [esi + 0x40], eax
test eax, eax
jne 0x10199d60
call fcn.10233bb0
jmp 0x10199eb5
mov edx, eax
call fcn.10233bd0
jmp 0x10199eb5
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 4]
call fcn.10220980
mov edx, dword [esi + 0x10]
mov ecx, esi
mov edx, dword [edx + 4]
call fcn.101dfe90
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0xc], eax
cmp byte [esi + 0x57], bl
jne 0x10199d9f
mov eax, dword [esi + 0x10]
mov ecx, esi
mov eax, dword [eax + 0xc]
mov dl, byte [eax + 0x4d]
call fcn.101e0730
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
cmp byte [ecx + 9], bl
je 0x10199db5
add dword [ecx + 0xc], 0xffffffff
jne 0x10199db5
call fcn.102209a0
xor edx, edx
mov ecx, esi
call fcn.101dfe90
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [eax], str.main
mov eax, dword [esi + 0x10]
mov byte [eax + 8], 3
mov eax, dword [esi + 0x10]
mov dword [eax + 0x10], str.temp
mov eax, dword [esi + 0x10]
mov byte [eax + 0x18], 1
mov byte [esi + 0x61], 0x76
cmp byte [esi + 0x57], bl
jne 0x10199eb5
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x124], ebx
je 0x10199e08
xor edx, edx
mov ecx, esi
call fcn.10233bd0
jmp 0x10199e0f
mov dword [esi + 0x44], 0xffffffff
push 2
push str.MATCH
push esi
call sym.WMCommon.dll_sqlite3_overload_function
add esp, 0xc
cmp eax, 7
jne 0x10199e2b
mov ecx, esi
call fcn.10236ab0
push esi
call sym.WMCommon.dll_sqlite3_errcode
add esp, 4
test eax, eax
jne 0x10199e5b
mov edi, 0x1025b684
nop dword [eax]
cmp edi, str.rank
jge 0x10199eea
mov eax, dword [edi]
push esi
call eax
add esp, 4
add edi, 4
test eax, eax
je 0x10199e40
mov edx, eax
mov dword [esi + 0x40], eax
mov ecx, esi
call fcn.10233bd0
push dword [0x1031bdb8]
xor edx, edx
mov ecx, esi
push dword [0x1031bdb4]
call fcn.1019cb20
mov eax, dword [esi + 0xc]
add esp, 8
test eax, eax
je 0x10199e93
push eax
call dword [0x1031bdf0]
mov eax, dword [esi + 0xc]
add esp, 4
mov dword [esi + 0x110], 0x1019afa0
mov dword [esi + 0x114], 0x3e8
test eax, eax
je 0x10199eb5
push eax
call dword [0x1031bdf8]
add esp, 4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10199ec6
push eax
call dword [0x1031bdf8]
add esp, 4
push esi
call sym.WMCommon.dll_sqlite3_errcode
mov ebx, eax
add esp, 4
cmp bl, 7
jne 0x10199fd9
xor edx, edx
mov ecx, esi
call fcn.1019c360
xor esi, esi
jmp 0x10199fe1
test eax, eax
jne 0x10199e5b
mov dword [esp + 0xc], 1
cmp dword [0x10320fe0], ebx
je 0x10199fc3
xor ebx, ebx
nop dword [eax + eax]
cmp byte [0x1031bda4], 0
jne 0x10199f1d
xor edi, edi
jmp 0x10199f38
push 2
call dword [0x1031bde8]
mov edi, eax
add esp, 4
test edi, edi
je 0x10199f38
push edi
call dword [0x1031bdf0]
add esp, 4
cmp ebx, dword [0x10320fe0]
jb 0x10199f52
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
jmp 0x10199f5e
mov eax, dword [0x10320fe4]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x18], eax
test edi, edi
je 0x10199f6c
push edi
call dword [0x1031bdf8]
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test eax, eax
je 0x10199fab
push 0x1025cd90
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
je 0x10199fab
push dword [esp + 0x10]
push str.automatic_extension_loading_failed:__s
push eax
push esi
call fcn.10233a40
add esp, 0x10
mov dword [esp + 0xc], 0
push dword [esp + 0x10]
call sym.WMCommon.dll_sqlite3_free
add esp, 4
inc ebx
cmp dword [esp + 0xc], 0
jne 0x10199f10
push esi
call sym.WMCommon.dll_sqlite3_errcode
add esp, 4
test eax, eax
jne 0x10199eb5
jmp 0x10199e67
test ebx, ebx
je 0x10199fe1
mov byte [esi + 0x61], 0xba
mov eax, dword [esp + 0x1c]
push dword [esp + 0x14]
mov dword [eax], esi
call sym.WMCommon.dll_sqlite3_free_filename
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret