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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebp
mov dword [eax], ebp
call sym.sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x1003ab8b
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
cmp byte [0x100bc0dc], al
jne 0x1003a3c8
xor ebx, ebx
jmp 0x1003a3e8
test edi, 0x8000
je 0x1003a3d4
xor ebx, ebx
jmp 0x1003a3e8
mov ebx, 1
test edi, 0x10000
jne 0x1003a3e8
movzx ebx, byte [0x100bc0dd]
test edi, 0x40000
je 0x1003a3f8
and edi, 0xfffdffff
jmp 0x1003a406
cmp dword [0x100bc1a0], ebp
je 0x1003a406
or edi, 0x20000
push 0
and edi, 0xfff600e7
push 0x228
mov dword [esp + 0x38], edi
call fcn.10065ae0
mov esi, eax
add esp, 8
test esi, esi
je 0x1003aad5
push 0x228
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
je 0x1003a481
cmp byte [0x100bc0dc], 0
jne 0x1003a45c
push esi
mov dword [esi + 0xc], ebp
call sym.sqlite3.dll_sqlite3_free
add esp, 4
xor ebx, ebx
lea esi, [ebx + 7]
jmp 0x1003aae2
push 1
call dword [0x100bc120]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1003a481
push esi
call sym.sqlite3.dll_sqlite3_free
add esp, 4
xor ebx, ebx
lea esi, [ebx + 7]
jmp 0x1003aae2
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1003a492
push eax
call dword [0x100bc128]
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
and eax, 0xffffff00
add eax, 0xff
mov dword [esi + 0x48], eax
lea eax, [esi + 0x1cc]
mov dword [esi + 0x10], eax
xor eax, eax
mov word [esi + 0x134], ax
movups xmm0, xmmword [0x100ac48c]
push fcn.1001ead0
push 0
movups xmmword [esi + 0x78], xmm0
push 1
movups xmm0, xmmword [0x100ac49c]
push 0x100b1084
push esi
movups xmmword [esi + 0x88], xmm0
movups xmm0, xmmword [0x100ac4ac]
mov byte [esi + 0x55], 1
mov byte [esi + 0x5a], 0xff
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa4], eax
mov eax, dword [0x100bc180]
mov ecx, dword [0x100bc184]
or dword [esi + 0x20], 0xe00480e0
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x64], ebp
mov dword [esi + 0xb8], 0x100bc200
mov dword [esi + 0x24], eax
mov dword [esi + 0x1b8], ebp
mov dword [esi + 0x1b4], ebp
mov dword [esi + 0x1b0], ebp
mov dword [esi + 0x1bc], ebp
mov dword [esi + 0x18c], ebp
mov dword [esi + 0x188], ebp
mov dword [esi + 0x184], ebp
mov dword [esi + 0x190], ebp
call fcn.100263d0
push 0
push fcn.1001ead0
push 0
push 3
push 0x100b1084
push esi
call fcn.100263d0
push 0
push fcn.1001ead0
push 0
push 2
push 0x100b1084
push esi
call fcn.100263d0
add esp, 0x48
push 0
push 0x1003a200
push 0
push 1
push str.NOCASE
push esi
call fcn.100263d0
push 0
push 0x10045360
push 0
push 1
push str.RTRIM
push esi
call fcn.100263d0
add esp, 0x30
mov ebx, esi
cmp byte [esi + 0x57], 0
jne 0x1003a6c3
mov ecx, edi
mov dword [esi + 0x3c], edi
and ecx, 7
mov eax, 1
shl eax, cl
test al, 0x46
jne 0x1003a603
push 0x2af07
call fcn.10066100
add esp, 4
jmp 0x1003a62f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x38]
push dword [esp + 0x48]
call fcn.10068770
mov ebp, dword [esp + 0x30]
add esp, 0x18
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x1003a72e
cmp eax, 7
jne 0x1003a649
push esi
call fcn.100664c0
add esp, 4
mov ebx, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
mov eax, 0x100b3c00
push ebx
cmove eax, ecx
push eax
push dword [esp + 0x18]
push esi
call fcn.10055f10
add esp, 0x10
test ebx, ebx
je 0x1003a6c1
cmp dword [0x100bc0d8], 0
je 0x1003a6b7
mov eax, dword [0x100bdd58]
test eax, eax
je 0x1003a688
push eax
call dword [0x100bc128]
add esp, 4
push ebx
call dword [0x100bc104]
sub dword [0x100bdcf8], eax
dec dword [0x100bdd1c]
push ebx
call dword [0x100bc0fc]
mov eax, dword [0x100bdd58]
add esp, 8
test eax, eax
je 0x1003a6c1
push eax
call dword [0x100bc130]
jmp 0x1003a6be
push ebx
call dword [0x100bc0fc]
add esp, 4
mov ebx, esi
mov edi, esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1003a6d6
push eax
call dword [0x100bc130]
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x1003aab1
cmp al, 0x76
je 0x1003aab1
cmp al, 0x6d
je 0x1003aab1
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call sym.sqlite3.dll_sqlite3_log
push 0x100b85cc
push 0x2ac31
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.sqlite3.dll_sqlite3_log
add esp, 0x20
mov byte [ebx + 0x61], 0xba
mov esi, 0x15
jmp 0x1003aaef
mov eax, dword [esi + 0x10]
or edi, 0x100
push edi
push 0
add eax, 4
push eax
push esi
push ebp
push dword [esi]
call fcn.1004dc40
add esp, 0x18
test eax, eax
je 0x1003a76a
cmp eax, 0xc0a
mov ecx, 7
cmove eax, ecx
push eax
push esi
call fcn.10055dc0
add esp, 8
jmp 0x1003a6c3
mov eax, dword [esi + 0x10]
push dword [eax + 4]
call fcn.1004ca40
mov eax, dword [esi + 0x10]
push dword [eax + 4]
push esi
call fcn.10071150
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [ecx + 0xc], eax
cmp byte [esi + 0x57], 0
jne 0x1003a7a4
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 0x4d]
push eax
push esi
call fcn.10074a80
add esp, 8
mov eax, dword [esi + 0x10]
push dword [eax + 4]
call fcn.1004dbc0
push 0
push esi
call fcn.10071150
mov ecx, dword [esi + 0x10]
add esp, 0xc
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
cmp byte [esi + 0x57], 0
mov byte [esi + 0x61], 0x76
jne 0x1003a6c3
cmp dword [esi + 0x124], 0
mov dword [esi + 0x40], 0
je 0x1003a80c
push 0
push esi
call fcn.10055df0
add esp, 8
jmp 0x1003a813
mov dword [esi + 0x44], 0xffffffff
push 2
push str.MATCH
push esi
call sym.sqlite3.dll_sqlite3_overload_function
add esp, 0xc
cmp eax, 7
jne 0x1003a831
push esi
call fcn.100664c0
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x1003a87b
cmp al, 0x76
je 0x1003a87b
cmp al, 0x6d
je 0x1003a87b
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call sym.sqlite3.dll_sqlite3_log
push 0x100b85cc
push 0x2ac31
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.sqlite3.dll_sqlite3_log
add esp, 0x20
mov eax, 0x15
mov edi, esi
jmp 0x1003aa51
cmp byte [esi + 0x57], 0
jne 0x1003aa4a
mov eax, dword [esi + 0x40]
mov ecx, ebx
mov edi, ebx
and eax, dword [esi + 0x48]
jne 0x1003aa51
mov edi, 0x100b1a00
nop word [eax + eax]
mov eax, ecx
mov edx, ebx
cmp edi, 0x100b1a08
jge 0x1003a8c4
mov eax, dword [edi]
push esi
call eax
add esp, 4
add edi, 4
mov ecx, ebx
test eax, eax
je 0x1003a8a0
mov edi, ecx
jmp 0x1003aa51
cmp dword [0x100bdf44], 0
mov edi, eax
je 0x1003a9e7
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
lea ebp, [ecx + 1]
cmp byte [0x100bc0dc], 0
jne 0x1003a8ed
xor edi, edi
jmp 0x1003a90c
push 2
call dword [0x100bc120]
mov edi, eax
add esp, 4
test edi, edi
je 0x1003a908
push edi
call dword [0x100bc128]
add esp, 4
mov ecx, dword [esp + 0x14]
cmp ecx, dword [0x100bdf44]
jb 0x1003a920
mov dword [esp + 0x1c], 0
xor ebp, ebp
jmp 0x1003a92c
mov eax, dword [0x100bdf48]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x1003a93a
push edi
call dword [0x100bc130]
add esp, 4
mov eax, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x10], edi
test eax, eax
je 0x1003a975
push 0x100aca20
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
je 0x1003a971
push dword [esp + 0x10]
push str.automatic_extension_loading_failed:__s
push eax
push esi
call fcn.10055f10
add esp, 0x10
xor ebp, ebp
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1003a9ce
cmp dword [0x100bc0d8], 0
je 0x1003a9c4
mov eax, dword [0x100bdd58]
test eax, eax
je 0x1003a995
push eax
call dword [0x100bc128]
add esp, 4
push edi
call dword [0x100bc104]
sub dword [0x100bdcf8], eax
dec dword [0x100bdd1c]
push edi
call dword [0x100bc0fc]
mov eax, dword [0x100bdd58]
add esp, 8
test eax, eax
je 0x1003a9ce
push eax
call dword [0x100bc130]
jmp 0x1003a9cb
push edi
call dword [0x100bc0fc]
add esp, 4
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
test ebp, ebp
jne 0x1003a8e0
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov al, byte [esi + 0x61]
mov ecx, edi
mov edx, ebx
cmp al, 0xba
je 0x1003aa2e
cmp al, 0x76
je 0x1003aa2e
cmp al, 0x6d
je 0x1003aa2e
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call sym.sqlite3.dll_sqlite3_log
push 0x100b85cc
push 0x2ac31
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.sqlite3.dll_sqlite3_log
add esp, 0x20
jmp 0x1003a6c5
cmp byte [esi + 0x57], 0
mov ebx, edx
mov edi, ecx
jne 0x1003a6c5
mov eax, dword [esi + 0x40]
and eax, dword [esi + 0x48]
jne 0x1003a6c5
jmp 0x1003aa5b
mov eax, 7
mov edi, ebx
push eax
push esi
call fcn.10055dc0
add esp, 8
push dword [0x100bc0f0]
push dword [0x100bc0ec]
push 0
push esi
call fcn.10047750
mov eax, dword [esi + 0xc]
add esp, 0x10
test eax, eax
je 0x1003aa83
push eax
call dword [0x100bc128]
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [esi + 0x110], 0x10089790
mov dword [esi + 0x114], 0x3e8
test eax, eax
je 0x1003a6c5
push eax
call dword [0x100bc130]
add esp, 4
jmp 0x1003a6c5
cmp byte [esi + 0x57], 0
jne 0x1003aad7
mov eax, dword [esi + 0x40]
mov ebx, edi
and eax, dword [esi + 0x48]
mov dword [esp + 0x1c], eax
mov ecx, eax
cmp al, 7
je 0x1003aade
mov esi, ecx
test ecx, ecx
je 0x1003aaef
mov byte [ebx + 0x61], 0xba
jmp 0x1003aaef
mov ebx, esi
mov esi, 7
jmp 0x1003aae2
mov esi, dword [esp + 0x1c]
push 0
push ebx
call fcn.1004fcc0
add esp, 8
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov dword [eax], ebx
test ebp, ebp
je 0x1003ab86
nop dword [eax]
cmp byte [ebp - 1], 0
lea eax, [ebp - 1]
jne 0x1003ab1e
cmp byte [ebp - 2], 0
jne 0x1003ab1e
cmp byte [ebp - 3], 0
jne 0x1003ab1e
add ebp, 0xfffffffc
cmp byte [ebp], 0
je 0x1003ab22
mov ebp, eax
jmp 0x1003ab00
test ebp, ebp
je 0x1003ab86
cmp dword [0x100bc0d8], 0
je 0x1003ab7c
mov eax, dword [0x100bdd58]
test eax, eax
je 0x1003ab42
push eax
call dword [0x100bc128]
add esp, 4
push ebp
call dword [0x100bc104]
sub dword [0x100bdcf8], eax
dec dword [0x100bdd1c]
push ebp
call dword [0x100bc0fc]
mov eax, dword [0x100bdd58]
add esp, 8
test eax, eax
je 0x1003ab86
push eax
call dword [0x100bc130]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x14
ret
push ebp
call dword [0x100bc0fc]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x14
ret