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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, ecx
push esi
mov ecx, dword [eax + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax]
xorps xmm0, xmm0
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], 0
mov dword [esp + 0x1c], ecx
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x60], xmm0
test esi, esi
je 0x1006f5b8
xor edi, edi
cmp dword [esi], 0x40
cmovge esi, edi
mov dword [ebp + 0xc], esi
test byte [ecx + 0x44], 0x10
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x58], esi
je 0x1006f5cb
and edi, 0xfeff
mov edx, dword [edx]
mov dword [esp + 0x28], edi
cmp edx, 0x40
jle 0x1006f5ee
push 0x40
push str.at_most__d_tables_in_a_join
push eax
call fcn.100e99e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
and edi, 0x20
mov eax, 1
cmovne edx, eax
push 0
lea eax, [edx + edx*4]
shl eax, 4
mov dword [esp + 0x50], eax
add eax, 0x2f7
and eax, 0xfffffff8
mov dword [esp + 0x4c], eax
add eax, 0x48
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], edx
call fcn.100ec7e0
mov ecx, dword [esp + 0x24]
add esp, 8
cmp byte [ecx + 0x49], 0
mov edi, eax
mov dword [esp + 0x34], edi
je 0x1006f68c
test edi, edi
je 0x1006f943
cmp dword [ecx + 0x1d8], 0
je 0x1006f655
mov edx, edi
call fcn.100ecc10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, dword [ecx + 0x130]
jb 0x1006f67b
cmp edi, dword [ecx + 0x134]
jae 0x1006f67b
mov eax, dword [ecx + 0x12c]
mov dword [edi], eax
mov dword [ecx + 0x12c], edi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], esi
mov esi, dword [ebp + 8]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x10], esi
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x18], 0xffffffff
mov byte [edi + 0x2e], al
call fcn.100c89b0
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x28]
mov word [edi + 0x2c], ax
mov eax, dword [ebp + 0x18]
mov word [edi + 0x14], ax
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
mov eax, dword [eax + 0x84]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x4c]
movq qword [edi + 0x2f], xmm0
add eax, 0x48
push eax
movq qword [edi + 0x37], xmm0
movq qword [edi + 0x3f], xmm0
lea ecx, [edi + 0x2f0]
push 0
movq qword [edi + 0x47], xmm0
push ecx
mov byte [edi + 0x4f], 0
call fcn.10003750
mov ecx, dword [esp + 0x54]
add ecx, edi
lea eax, [edi + 0x50]
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
lea eax, [ecx + 0x38]
mov dword [ecx + 0x30], eax
xor eax, eax
mov word [ecx + 0x28], ax
mov dword [ecx + 0x24], 0
mov eax, 3
mov word [ecx + 0x2c], ax
mov dword [edi + 0x1ec], 0
lea edx, [edi + 0x1e8]
mov dword [esp + 0x68], ecx
lea ecx, [edi + 0x50]
add esp, 0xc
mov dword [esp + 0x4c], edx
lea eax, [ecx + 0x18]
push 0x2c
mov edx, esi
mov dword [esp + 0x54], edi
mov dword [ecx], edi
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 8
mov dword [ecx + 0x14], eax
call fcn.100768a0
add esp, 4
cmp dword [esp + 0x24], 0
jne 0x1006f7b8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1006f7a4
mov al, byte [eax]
mov byte [edi + 0x2f], al
test dword [esp + 0x28], 0x100
mov eax, dword [esp + 0x18]
je 0x1006f7f4
mov byte [edi + 0x33], 1
jmp 0x1006f7f4
mov esi, dword [esp + 0x18]
xor edi, edi
add esi, 8
mov edx, dword [esp + 0x4c]
mov eax, dword [esi + 0x30]
mov ecx, dword [edx + 4]
push dword [esp + 0x3c]
mov dword [edx + ecx*4 + 8], eax
inc dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.10076470
mov eax, dword [esp + 0x1c]
inc edi
add esp, 4
add esi, 0x50
cmp edi, dword [eax]
jl 0x1006f7c1
mov edi, dword [esp + 0x34]
mov esi, dword [edi + 0x5c]
dec esi
js 0x1006f818
mov edi, dword [esp + 0x3c]
mov edi, edi
push esi
mov edx, edi
mov ecx, eax
call fcn.10076910
mov eax, dword [esp + 0x1c]
add esp, 4
dec esi
jns 0x1006f800
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x49], 0
jne 0x1006f92b
cmp dword [edi + 0x5c], 0
lea esi, [edi + 0x50]
mov dword [esp + 0x3c], 0
jle 0x1006f897
xor eax, eax
mov dword [esp + 0x38], eax
jmp 0x1006f843
lea esi, [edi + 0x50]
mov esi, dword [esi + 0x14]
add esi, eax
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x1006f879
cmp dword [esp + 0x24], eax
je 0x1006f861
mov ecx, dword [esi]
call fcn.1006ff60
test eax, eax
je 0x1006f879
push 0x10
push dword [edi + 0x24]
push dword [esi]
push dword [esp + 0x20]
call fcn.100ad3e0
add esp, 0x10
or word [esi + 0xa], 4
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
inc esi
lea ecx, [edi + 0x50]
add eax, 0x30
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], eax
cmp esi, dword [ecx + 0xc]
jl 0x1006f840
jmp 0x1006f89a
lea ecx, [edi + 0x50]
mov eax, dword [esp + 0x28]
mov esi, dword [ebp + 0x10]
and eax, 0x100
mov dword [esp + 0x4c], eax
je 0x1006f8da
mov edx, dword [esp + 0x18]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.10075c60
add esp, 8
test eax, eax
je 0x1006f8c8
mov byte [edi + 0x33], 1
jmp 0x1006f8da
cmp dword [ebp + 0xc], 0
jne 0x1006f8da
mov eax, 0x80
or word [edi + 0x2c], ax
mov dword [edi + 8], esi
cmp dword [esp + 0x24], 1
jne 0x1006f8ee
lea ecx, [esp + 0x50]
call fcn.1006ffe0
test eax, eax
jne 0x1006f94b
lea ecx, [esp + 0x50]
call fcn.10071250
test eax, eax
jne 0x1006f92b
xor edx, edx
mov ecx, edi
call fcn.100701a0
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x49], 0
jne 0x1006f92b
cmp dword [edi + 8], 0
je 0x1006f955
movzx edx, word [edi + 0x48]
inc dx
mov ecx, edi
call fcn.100701a0
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x49], 0
je 0x1006f94f
mov eax, dword [edi + 0x28]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, edi
mov dword [esi + 0x84], eax
call fcn.10073a40
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
cmp dword [edi + 8], 0
jne 0x1006f96c
test dword [eax + 0x1c], 0x1000
je 0x1006f96c
mov dword [edi + 0x40], 0xffffffff
mov dword [edi + 0x44], 0xffffffff
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x24], 0
jne 0x1006f92b
cmp byte [eax + 0x49], 0
jne 0x1006f92b
cmp byte [edi + 0x2e], 2
jb 0x1006fa8f
test esi, esi
je 0x1006fa8f
mov ecx, 0x100
test word [eax + 0x44], cx
jne 0x1006fa8f
mov edx, esi
lea ecx, [edi + 0x1e8]
call fcn.10076600
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
test edx, edx
je 0x1006f9cd
lea ecx, [edi + 0x1e8]
call fcn.10076600
or dword [esp + 0x3c], eax
or dword [esp + 0x38], edx
cmp byte [edi + 0x2e], 2
jb 0x1006fa8f
mov esi, dword [edi + 4]
lea ebx, [ebx]
mov dl, byte [edi + 0x2e]
movzx eax, dl
lea eax, [eax + eax*4]
add eax, eax
mov ecx, dword [edi + eax*8 + 0x2e0]
movzx eax, byte [ecx + 0x10]
lea eax, [eax + eax*4]
add eax, eax
test byte [esi + eax*8 + 0x2c], 8
je 0x1006fa8f
cmp word [esp + 0x4c], 0
jne 0x1006fa1b
test dword [ecx + 0x24], 0x1000
je 0x1006fa8f
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov ecx, eax
and ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, esi
and eax, dword [esp + 0x38]
mov dword [esp + 0x30], esi
or ecx, eax
jne 0x1006fa8f
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
lea esi, [ecx + ecx*2]
shl esi, 4
add esi, eax
cmp eax, esi
jae 0x1006fa7a
nop
mov edx, dword [eax + 0x28]
mov ecx, dword [eax + 0x2c]
and edx, dword [esp + 0x48]
and ecx, dword [esp + 0x30]
or edx, ecx
je 0x1006fa6a
mov ecx, dword [eax]
test byte [ecx + 4], 1
je 0x1006fa73
add eax, 0x30
cmp eax, esi
jb 0x1006fa50
jmp 0x1006fa77
cmp eax, esi
jb 0x1006fa8f
mov dl, byte [edi + 0x2e]
dec dword [esp + 0x24]
mov esi, dword [edi + 4]
dec dl
mov byte [edi + 0x2e], dl
cmp dl, 2
jae 0x1006f9e0
movsx eax, word [edi + 0x48]
mov ecx, dword [edi]
mov edx, dword [esp + 0x28]
add dword [ecx + 0x84], eax
test dl, 4
je 0x1006fb06
mov eax, dword [edi + 0x330]
mov ecx, dword [eax + 0x24]
mov eax, ecx
shr eax, 0xc
and eax, 1
jne 0x1006fac4
test dl, 8
je 0x1006fb06
test ecx, 0x400
jne 0x1006fb06
mov edx, dword [esp + 0x18]
test eax, eax
sete al
inc al
mov byte [edi + 0x31], al
mov eax, dword [edx + 0x18]
test byte [eax + 0x24], 0x20
jne 0x1006fb0a
test cl, 0x40
je 0x1006fb0a
mov eax, dword [esp + 0x44]
test byte [esp + 0x28], 8
movzx eax, al
mov esi, 8
cmovne eax, esi
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x330]
and ecx, 0xffffffbf
mov dword [eax + 0x24], ecx
jmp 0x1006fb0a
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
test ecx, ecx
jle 0x1006fe5c
lea eax, [edi + 0x330]
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], ecx
movzx eax, byte [eax - 0x14]
mov esi, 0xfff0bdc0
lea eax, [eax + eax*4]
shl eax, 4
add eax, 8
add edx, eax
mov dword [esp + 0x2c], edx
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x3c], ecx
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x1006fb74
mov eax, dword [esp + 0x1c]
xor esi, esi
mov edx, dword [eax + 0x14]
test edx, edx
jle 0x1006fb70
mov eax, dword [eax + 0x10]
mov edi, dword [ecx + 0x48]
add eax, 0xc
cmp dword [eax], edi
je 0x1006fb6c
inc esi
add eax, 0x10
cmp esi, edx
jl 0x1006fb60
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
test byte [ecx + 0x24], 2
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
jne 0x1006fd18
cmp dword [ecx + 0xc], 0
jne 0x1006fd18
mov eax, dword [eax + 0x24]
test eax, 0x400
je 0x1006fbd2
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x1006fbb2
mov ecx, dword [esp + 0x1c]
cmp dword [eax], ecx
je 0x1006fbb2
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1006fba7
mov ecx, dword [esp + 0x20]
push 0xfffffffffffffff4
push eax
push 0
push 0
push dword [edx + 0x30]
mov edx, 0x9c
call fcn.100c8bd0
add esp, 0x14
jmp 0x1006fd14
cmp dword [ecx + 0x38], 0
jne 0x1006fd18
test al, 0x40
jne 0x1006fcff
cmp word [esp + 0x40], 0
jne 0x1006fcff
cmp byte [edi + 0x31], 0
mov edx, 0x68
je 0x1006fc0a
mov eax, dword [esp + 0x2c]
mov edx, 0x69
mov eax, dword [eax + 0x30]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [eax + 0x30]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.10097b90
add esp, 0xc
cmp byte [edi + 0x31], 0
jne 0x1006fced
mov eax, dword [esp + 0x3c]
cmp word [eax + 0x2a], 0x40
jge 0x1006fced
test byte [eax + 0x24], 0x20
jne 0x1006fced
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], 0
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x44]
mov eax, edx
or eax, ecx
je 0x1006fc75
mov edi, dword [esp + 0x30]
nop
shrd edx, ecx, 1
shr ecx, 1
mov eax, edx
inc edi
or eax, ecx
jne 0x1006fc60
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
cmp byte [ecx + 0x49], 0
je 0x1006fca8
mov eax, dword [esp + 0x30]
push eax
mov edx, 0xfffffffd
call fcn.100c8350
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
movzx edx, al
add esp, 4
call fcn.100c85b0
jmp 0x1006fd14
mov eax, dword [edx + 0x88]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x30]
je 0x1006fce6
push 0xfffffffffffffffd
mov edx, ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.100c8130
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
movzx edx, al
add esp, 8
call fcn.100c85b0
jmp 0x1006fd14
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfd
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
movzx edx, al
call fcn.100c85b0
jmp 0x1006fd14
push dword [ecx]
mov edx, esi
push 0
push dword [ecx + 0x1c]
mov ecx, dword [esp + 0x20]
call fcn.100a6f40
add esp, 0xc
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
test dword [edx + 0x24], 0x200
je 0x1006fe10
test byte [ecx + 0x24], 0x20
mov edx, dword [edx + 0x20]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], 0x68
je 0x1006fd5b
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
mov eax, dword [esp + 0x40]
jne 0x1006fd5f
test ax, ax
je 0x1006fd5f
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0x3c]
xor eax, eax
jmp 0x1006fdb5
mov eax, dword [esp + 0x40]
cmp byte [edi + 0x31], 0
mov ecx, dword [ebp + 0x18]
je 0x1006fd8c
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x1006fd82
cmp eax, edx
je 0x1006fd82
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x1006fd76
mov eax, 0x69
mov dword [edi + 0x1c], ecx
jmp 0x1006fdb5
test ecx, ecx
je 0x1006fd9c
test ax, ax
je 0x1006fd9c
mov eax, 0x67
jmp 0x1006fdb5
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0x28]
lea eax, [ecx + 1]
mov dword [edi + 0x28], eax
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov dword [edx - 0x38], ecx
mov edx, dword [esp + 0x3c]
test eax, eax
je 0x1006fe10
push esi
push dword [edx + 0x2c]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.100c9000
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
add esp, 0xc
call fcn.100c8020
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x24]
test al, 0xf
je 0x1006fe10
test eax, 0x8002
jne 0x1006fe10
test byte [edi + 0x2c], 1
jne 0x1006fe10
cmp byte [edi + 0x33], 2
je 0x1006fe10
mov ecx, dword [esp + 0x20]
mov edx, 2
call fcn.100c85b0
test esi, esi
js 0x1006fe43
mov ecx, dword [esp + 0x14]
mov edx, ecx
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne edx, eax
mov ecx, esi
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x5c]
test ecx, eax
jne 0x1006fe43
or eax, ecx
mov dword [edx + 0x5c], eax
cmp esi, 1
jne 0x1006fe43
mov ecx, edx
call fcn.100a09a0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
add eax, 0x50
dec dword [esp + 0x4c]
mov dword [esp + 0x38], eax
jne 0x1006fb24
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x88]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x49], 0
jne 0x1006f92b
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], ecx
cmp dword [esp + 0x24], ecx
jle 0x1006ff4d
lea esi, [edi + 0x31c]
lea esp, [esp]
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x1006fee9
mov ecx, dword [esp + 0x18]
lea eax, [esi - 0x2c]
push eax
movzx eax, byte [esi]
push dword [esp + 0x48]
lea eax, [eax + eax*4]
add ecx, 8
shl eax, 4
push edx
add eax, ecx
mov ecx, dword [esp + 0x20]
push eax
lea edx, [edi + 0x50]
call fcn.10074f00
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp byte [eax + 0x49], 0
jne 0x1006f92b
mov ecx, dword [esp + 0x40]
movzx eax, byte [esi]
push dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esi - 0x2c]
push eax
call fcn.1007be60
mov eax, dword [esp + 0x30]
push dword [esp + 0x54]
mov eax, dword [eax + 0x88]
mov edx, dword [esp + 0x54]
mov dword [esi - 0xc], eax
mov eax, dword [esp + 0x50]
push eax
mov ecx, edi
call fcn.10078ad0
mov ecx, dword [esi - 0x14]
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0x58]
inc ecx
add esp, 0x18
add esi, 0x50
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov edx, eax
cmp ecx, dword [esp + 0x24]
jl 0x1006fea0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret