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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x10221008]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
mov ebp, edx
push edi
mov edi, ecx
mov dword [esp + 0x14], ebp
mov ecx, str.sqlite_temp_master
mov dword [esp + 0x28], edi
cmp ebp, 1
mov dword [esp + 0x20], esi
mov eax, str.sqlite_master
mov dword [esp + 0x24], 0
cmove eax, ecx
mov byte [edi + 0xa5], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x5c]
push 0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x64], str.table
push 5
push eax
mov dword [esp + 0x78], 0x101ee188
mov dword [esp + 0x7c], str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_int_sql_text_
mov dword [esp + 0x80], 0
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x54], 0
call fcn.10139f20
mov ebx, dword [esp + 0x4c]
add esp, 0x10
test ebx, ebx
jne 0x1013a581
mov eax, dword [edi + 0x10]
mov ecx, ebp
shl ecx, 4
mov dword [esp + 0x1c], ecx
lea ebp, [eax + ecx]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x18], ebp
test ecx, ecx
jne 0x1013a256
mov eax, dword [eax + 0x1c]
or word [eax + 0x4e], 1
xor eax, eax
jmp 0x1013a5dc
cmp byte [ecx + 9], 0
je 0x1013a26a
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x1013a26a
call fcn.100f4370
mov ecx, dword [ebp + 4]
cmp byte [ecx + 8], 0
jne 0x1013a2a6
push 0
xor edx, edx
call fcn.100f7170
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1013a29e
mov ecx, ebx
call fcn.10163290
push eax
mov edx, edi
mov ecx, esi
call fcn.100e2ce0
add esp, 4
jmp 0x1013a565
mov dword [esp + 0x24], 1
xor ebx, ebx
mov edi, ebp
nop word [eax + eax]
mov esi, dword [edi + 4]
mov dl, byte [esi + 9]
mov ebp, dword [esi + 4]
test dl, dl
je 0x1013a2d0
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1013a2d0
mov ecx, esi
call fcn.100f4370
mov dl, byte [esi + 9]
cmp ebx, 0xe
jne 0x1013a2e4
mov eax, dword [ebp]
mov ecx, dword [esi + 0x14]
add ecx, dword [eax + 0x64]
mov dword [esp + ebx*4 + 0x48], ecx
jmp 0x1013a2f4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + ebx*4 + 0x28]
bswap eax
mov dword [esp + ebx*4 + 0x48], eax
test dl, dl
je 0x1013a305
add dword [esi + 0xc], 0xffffffff
jne 0x1013a305
mov ecx, esi
call fcn.100f4330
inc ebx
cmp ebx, 5
jl 0x1013a2b0
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x20]
and eax, 0x2000000
or eax, 0
je 0x1013a32c
xorps xmm0, xmm0
xor edx, edx
movups xmmword [esp + 0x48], xmm0
mov dword [esp + 0x58], edx
jmp 0x1013a330
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test edx, edx
je 0x1013a3ab
test esi, esi
jne 0x1013a360
and dl, 3
mov eax, 1
movzx ecx, dl
cmove ecx, eax
mov byte [edi + 0x4e], cl
mov ebx, dword [esp + 0x1c]
jmp 0x1013a3be
mov cl, byte [edi + 0x4e]
movzx eax, cl
cmp edx, eax
je 0x1013a35a
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
test edx, edx
je 0x1013a37b
mov ecx, edi
call fcn.100e2680
push 0
push 0x44
mov ecx, edi
call fcn.100e2970
mov esi, eax
add esp, 8
test esi, esi
je 0x1013a39f
push 0x44
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebx], esi
mov ebx, 1
jmp 0x1013a51c
mov eax, dword [edi + 0x10]
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + eax + 0xc]
or word [eax + 0x4e], 4
mov cl, byte [edi + 0x4e]
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x4d], cl
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x50], 0
jne 0x1013a403
mov eax, dword [esp + 0x50]
test eax, eax
jns 0x1013a3e5
cmp eax, 0x80000000
jne 0x1013a3e3
mov eax, 0x7fffffff
jmp 0x1013a3ef
neg eax
test eax, eax
mov ecx, 0xfffff830
cmove eax, ecx
mov dword [edx + 0x50], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov edx, dword [edx + 0x50]
call fcn.100f6880
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x4c]
mov byte [edx + 0x4c], cl
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x4c], 0
jne 0x1013a41a
mov byte [eax + 0x4c], 1
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x1013a466
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
test edx, edx
je 0x1013a431
mov ecx, edi
call fcn.100e2680
push 0
push 0x18
mov ecx, edi
call fcn.100e2970
add esp, 8
test eax, eax
je 0x1013a45a
movups xmm0, xmmword [str.unsupported_file_format]
movups xmmword [eax], xmm0
movq xmm0, qword [0x101f7d3c]
movq qword [eax + 0x10], xmm0
mov dword [ebx], eax
mov ebx, 1
jmp 0x1013a51c
test esi, esi
jne 0x1013a479
cmp ecx, 4
jl 0x1013a479
mov eax, dword [edi + 0x24]
and dword [edi + 0x20], 0xfffffffd
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x10]
push dword [esp + 0x2c]
push dword [ebx + eax]
push str.SELECTFROM__w_._s_ORDER_BY_rowid
push edi
call fcn.100e4de0
mov esi, dword [edi + 0x150]
lea ecx, [esp + 0x40]
push 0
push ecx
mov ebp, eax
mov dword [edi + 0x150], 0
push fcn.10139f20
push ebp
push edi
call fcn.10135bc0
mov ebx, eax
mov dword [edi + 0x150], esi
add esp, 0x24
test ebx, ebx
cmove ebx, dword [esp + 0x3c]
test ebp, ebp
je 0x1013a4d2
mov edx, ebp
mov ecx, edi
call fcn.100e2680
test ebx, ebx
jne 0x1013a4e1
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.10121b70
cmp byte [edi + 0x51], 0
je 0x1013a4f5
mov ecx, edi
mov ebx, 7
call fcn.10123730
jmp 0x1013a4f9
test ebx, ebx
je 0x1013a506
mov eax, dword [edi + 0x20]
and eax, 0x8000000
or eax, 0
je 0x1013a518
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax + 0xc]
or word [eax + 0x4e], 1
xor ebx, ebx
mov ebp, dword [esp + 0x18]
cmp dword [esp + 0x24], 0
je 0x1013a565
mov esi, dword [ebp + 4]
cmp byte [esi + 9], 0
je 0x1013a53c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1013a53c
mov ecx, esi
call fcn.100f4370
xor edx, edx
mov ecx, esi
call fcn.100f7e30
test eax, eax
jne 0x1013a552
xor edx, edx
mov ecx, esi
call fcn.100f7fc0
cmp byte [esi + 9], 0
je 0x1013a565
add dword [esi + 0xc], 0xffffffff
jne 0x1013a565
mov ecx, esi
call fcn.100f4330
mov ecx, dword [ebp + 4]
cmp byte [ecx + 9], 0
je 0x1013a579
add dword [ecx + 0xc], 0xffffffff
jne 0x1013a579
call fcn.100f4330
mov ebp, dword [esp + 0x14]
test ebx, ebx
je 0x1013a5da
cmp ebx, 7
je 0x1013a58e
cmp ebx, 0xc0a
jne 0x1013a5d1
cmp byte [edi + 0x51], 0
jne 0x1013a5d1
cmp byte [edi + 0x52], 0
jne 0x1013a5d1
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x1013a5b1
mov dword [edi + 0x110], 1
inc dword [edi + 0x118]
xor eax, eax
mov word [edi + 0x11c], ax
mov eax, dword [edi + 0xf4]
test eax, eax
je 0x1013a5d1
mov dword [eax + 0xc], 7
mov edx, ebp
mov ecx, edi
call fcn.101236d0
mov eax, ebx
mov ecx, dword [esp + 0x74]
mov byte [edi + 0xa5], 0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1018b6f4
add esp, 0x6c
ret