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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov edx, dword [ebx]
lea eax, [edi + 2]
lea esi, [eax + eax*2]
mov dword [esp + 0x1c], edx
shl esi, 2
lea eax, [esi + edx]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100f0845
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
jmp 0x100f084d
mov dword [esp + 0x6c], 0
mov eax, dword [ecx]
push 0x60
mov eax, dword [eax + 0x30]
mov dword [esp + 0x60], eax
xor eax, eax
push eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x80]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x44]
add esp, 0xc
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
movq qword [esp + 0x60], xmm0
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x100f08ed
mov ebx, dword [esp + 0x1c]
lea edx, [edi + edi*2]
shl edx, 2
lea eax, [ebx + 0x28]
add eax, edx
mov dword [esp + 0x58], eax
mov eax, dword [eax]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + edx + 0x2c]
mov ebx, dword [esp + 0xc]
lea ecx, [ecx - 3]
push dword [eax + ecx*4]
lea esi, [eax + ecx*4]
mov ecx, ebx
lea edx, [esp + 0x7c]
mov dword [esp + 0x30], esi
call fcn.100eff90
mov eax, dword [esi + 8]
add esp, 4
mov ecx, dword [esp + 0x1c]
inc eax
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x7c], eax
mov dword [esp + 0xd0], 0
jmp 0x100f09fd
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
call fcn.100ef230
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, dword [edx + 0x14]
dec ecx
cmp edi, ecx
jne 0x100f091e
mov ecx, dword [esp + 0xc]
mov edx, ebx
lea ecx, [ecx + 0x24]
call fcn.100ea170
mov edx, dword [ebx]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x24]
test eax, eax
jne 0x100f1b47
lea eax, [edi + 3]
lea eax, [eax + eax*2]
lea ebx, [edx + eax*4]
mov eax, dword [ebx + 4]
inc eax
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x28], eax
call sym.sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x100f0b49
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x30]
call fcn.10004d90
add esp, 8
test eax, eax
je 0x100f0b49
mov ecx, dword [ebx + 4]
xorps xmm0, xmm0
lea ecx, [ecx + ecx*2]
movq qword [eax + ecx*4], xmm0
mov dword [eax + ecx*4 + 8], 0
mov ecx, dword [esp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0x24]
test eax, eax
jne 0x100f1b47
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x78]
mov ebx, dword [esp + 0x14]
add eax, esi
lea esi, [edi + edi*2]
mov dword [esp + 0x38], eax
push ebx
shl esi, 2
call fcn.100eff90
mov eax, dword [esp + 0x20]
add esp, 4
lea ecx, [eax + 0x28]
mov eax, dword [eax + esi + 0x2c]
add ecx, esi
mov dword [esp + 0x58], ecx
mov esi, ecx
mov edx, dword [ecx]
lea ecx, [edx + edx*2]
lea ecx, [eax + ecx*4]
lea eax, [edx + 1]
mov dword [esp + 0x2c], ecx
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [ecx], ebx
mov ebx, dword [esp + 0xc]
mov dword [ecx + 4], 1
mov ecx, dword [esp + 0x1c]
inc dword [ecx + 0x10]
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
cmp dword [esi], 1
jne 0x100f0a12
lea eax, [edi + 2]
mov dword [esp + 0x40], 1
cmp dword [ecx + 0x14], eax
je 0x100f0a1a
mov dword [esp + 0x40], 0
lea eax, [esp + 0x10]
push eax
push edx
push edi
push 0
push 0
push 0
mov edx, ecx
mov ecx, ebx
push 0x20
call fcn.100eef40
mov esi, dword [esp + 0x2c]
add esp, 0x1c
mov edx, esi
mov ecx, ebx
call fcn.100ef210
test eax, eax
jne 0x100f14c3
nop word [eax + eax]
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x50]
movzx eax, word [eax + 4]
lea eax, [eax + eax*2]
shl eax, 5
add ecx, eax
mov dword [esp + 0x54], ecx
mov edi, dword [eax + esi + 0x98]
mov eax, dword [eax + esi + 0x94]
mov dword [esp + 0x20], eax
cmp edi, dword [esp + 0x64]
jne 0x100f0b5f
test edi, edi
jle 0x100f0aea
mov edx, dword [esp + 0x60]
mov esi, edi
mov ecx, eax
sub esi, 4
jb 0x100f0aa4
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100f0aa9
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100f0a93
cmp esi, 0xfffffffc
je 0x100f0ae2
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100f0b5b
cmp esi, 0xfffffffd
je 0x100f0ae2
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100f0b5b
cmp esi, 0xfffffffe
je 0x100f0ae2
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100f0b5b
cmp esi, 0xffffffff
je 0x100f0ae2
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100f0b5b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
cmp dword [ecx + 0x58], 0
jne 0x100f0b09
cmp dword [esp + 0x40], 0
jne 0x100f1344
cmp byte [ecx + 0x5c], 0
je 0x100f1344
mov ecx, dword [ebx + 0x24]
add ebx, 0x24
mov dword [esp + 0x18], ebx
test ecx, ecx
jne 0x100f0bcb
test edx, edx
jne 0x100f0bcb
push eax
push edi
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x80]
mov ecx, edi
call fcn.100efbf0
mov ecx, dword [ebx]
add esp, 8
mov dword [esp + 0x50], 1
jmp 0x100f0bcf
mov eax, dword [esp + 0xc]
mov dword [eax + 0x24], 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x10]
cmp dword [ebp + 0xc], 0
je 0x100f0b76
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0xb4], eax
jg 0x100f14c3
xor esi, esi
mov dword [esp + 0x64], esi
test edi, edi
je 0x100f0bb8
cmp edi, dword [esp + 0x68]
jbe 0x100f0b9e
push edi
lea ecx, [ebx + 0x24]
lea edx, [esp + 0x64]
call fcn.100e0470
add esp, 4
test eax, eax
jne 0x100f0bb8
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
push edi
push dword [esp + 0x24]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add esi, edi
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x20]
xor edx, edx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x50], edx
jmp 0x100f0aee
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x48]
movzx eax, word [eax + 4]
lea eax, [eax + eax*2]
shl eax, 5
mov esi, dword [eax + edx + 0xa0]
mov eax, dword [eax + edx + 0xa4]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
test ecx, ecx
jne 0x100f129d
mov eax, dword [edi]
mov ecx, dword [esp + 0x88]
add ecx, dword [esp + 0x94]
cmp ecx, dword [eax + 0x4c]
jl 0x100f0c1e
lea edx, [esp + 0x78]
mov ecx, edi
call fcn.100efac0
cmp byte [esp + 0xb1], 0
je 0x100f11c6
movzx edx, word [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov eax, edx
shr eax, 8
mov byte [ecx], al
xor eax, eax
mov byte [ecx + 1], dl
xor edx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
cmp dword [ebx], eax
jne 0x100f11c6
nop dword [eax]
test eax, eax
jne 0x100f11c2
mov esi, dword [esp + 0xc0]
mov ecx, edx
shl ecx, 5
add esi, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [edi]
mov eax, dword [esi + 0x14]
cmp eax, dword [ecx + 0x4c]
jl 0x100f0ff4
mov eax, dword [esi + 0x10]
mov ecx, 0x40
mov byte [eax], 1
mov eax, dword [esi + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x78]
imul ecx
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x20]
cdq
add ecx, eax
mov eax, dword [esi]
adc edi, edx
add ecx, 0x20
cdq
adc edi, 0
shld edi, ecx, 0x1f
shl ecx, 0x1f
add ecx, eax
mov dword [esp + 0xdc], ecx
adc edi, edx
cmp dword [ebx], 0
mov dword [esp + 0x48], edi
jne 0x100f0e57
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x2c], 0
lea edi, [eax + 0x2c]
jne 0x100f0da6
mov eax, dword [eax]
push dword [eax + 8]
push dword [eax + 4]
push str.REPLACE_INTO__q._q_data_id__block__VALUES_____
call sym.sqlite3.dll_sqlite3_mprintf
add esp, 0xc
mov esi, eax
cmp dword [ebx], 0
jne 0x100f0d3a
test esi, esi
je 0x100f0d2f
mov eax, dword [esp + 0xc]
mov edx, esi
push 0
push edi
push 0
mov ecx, dword [eax]
push 0x85
push 0xffffffffffffffff
mov ecx, dword [ecx]
call fcn.10071fd0
add esp, 0x14
mov dword [ebx], eax
jmp 0x100f0d3e
mov dword [ebx], 7
jmp 0x100f0e57
test esi, esi
je 0x100f0d96
cmp dword [0x1011d0f8], 0
je 0x100f0d8c
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100f0d5a
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100f0d96
push eax
call dword [0x1011d150]
jmp 0x100f0d93
push esi
call dword [0x1011d11c]
add esp, 4
cmp dword [ebx], 0
jne 0x100f0e57
mov ecx, dword [esp + 0xdc]
push dword [esp + 0x48]
push ecx
push 1
push dword [edi]
call sym.sqlite3.dll_sqlite3_bind_int64
mov esi, dword [edi]
add esp, 0x10
mov edx, 2
mov ecx, esi
call fcn.10031340
test eax, eax
jne 0x100f0e1c
cmp dword [esp + 0x44], eax
je 0x100f0e09
mov ecx, dword [esi + 0x6c]
push eax
push eax
mov eax, dword [esp + 0x54]
add ecx, 0x28
cdq
push edx
mov edx, dword [esp + 0x50]
push eax
call fcn.10028550
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x100f0e05
mov ecx, dword [esi]
mov edx, ebx
mov dword [ecx + 0x40], ebx
call fcn.10008a20
mov ecx, dword [esi]
mov edx, ebx
call fcn.10005460
mov ebx, dword [esp + 0x18]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100f0e1c
push eax
call dword [0x1011d150]
add esp, 4
push dword [edi]
call sym.sqlite3.dll_sqlite3_step
add esp, 4
push dword [edi]
call sym.sqlite3.dll_sqlite3_reset
mov esi, dword [edi]
add esp, 4
mov edx, 2
mov dword [ebx], eax
mov ecx, esi
call fcn.10031340
test eax, eax
jne 0x100f0e57
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100f0e57
push eax
call dword [0x1011d150]
add esp, 4
mov edi, dword [esp + 0x20]
mov eax, dword [ebx]
add edi, 2
test eax, eax
jne 0x100f0edc
cmp edi, dword [esp + 0xbc]
jl 0x100f0edc
mov esi, dword [esp + 0xc0]
call sym.sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x100f0ec6
mov eax, edi
mov ecx, esi
shl eax, 5
push 0
push eax
call fcn.10004d90
mov esi, eax
add esp, 8
test esi, esi
je 0x100f0ec6
mov edx, dword [esp + 0xbc]
mov ecx, edi
sub ecx, edx
shl edx, 5
shl ecx, 5
add edx, esi
push ecx
push 0
push edx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx]
add esp, 0xc
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], edi
jmp 0x100f0ee3
mov esi, dword [esp + 0x14]
add esi, dword [esp + 0xc0]
mov dword [ebx], 7
jmp 0x100f0fda
mov esi, dword [esp + 0xc0]
add esi, dword [esp + 0x14]
test eax, eax
jne 0x100f0fda
cmp dword [esi + 0x34], eax
jne 0x100f0fda
mov edi, dword [esi + 0x10]
lea edx, [esp + 0x70]
lea ecx, [edi + 1]
call fcn.10103660
movzx ecx, al
lea edx, [esp + 0x70]
inc ecx
add ecx, edi
call fcn.10103660
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov ebx, dword [esi + 0x34]
lea eax, [ebx + 9]
cmp eax, dword [esi + 0x38]
jbe 0x100f0f3d
mov ecx, dword [esp + 0x18]
lea edx, [esi + 0x30]
push eax
call fcn.100e0470
mov ebx, dword [esi + 0x34]
add esp, 4
test eax, eax
jne 0x100f0f4a
mov eax, dword [esi + 0x30]
mov byte [ebx + eax], 0
inc dword [esi + 0x34]
mov ebx, dword [esi + 0x34]
mov eax, dword [esi]
lea ecx, [ebx + 9]
cdq
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
cmp ecx, dword [esi + 0x38]
jbe 0x100f0f78
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x30]
call fcn.100e0470
mov ebx, dword [esi + 0x34]
add esp, 4
test eax, eax
jne 0x100f0f90
mov eax, dword [esp + 0x4c]
push dword [esp + 0x48]
mov ecx, dword [esi + 0x30]
push eax
add ecx, ebx
call fcn.10103910
add esp, 8
add dword [esi + 0x34], eax
mov ebx, dword [esi + 0x34]
add ebx, 9
cmp ebx, dword [esi + 0x38]
jbe 0x100f0fac
mov ecx, dword [esp + 0x18]
lea edx, [esi + 0x30]
push ebx
call fcn.100e0470
add esp, 4
test eax, eax
jne 0x100f0fc5
push dword [esp + 0x74]
mov ecx, dword [esi + 0x34]
push dword [esp + 0x74]
add ecx, dword [esi + 0x30]
call fcn.10103910
add esp, 8
add dword [esi + 0x34], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0x24], 1
mov dword [esi + 0x2c], eax
inc dword [esi]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0
jmp 0x100f0ffd
mov edi, 1
mov dword [esp + 0x24], edi
cmp dword [esi + 4], 0
je 0x100f1016
mov ebx, dword [esp + 0x30]
sub ebx, dword [esi + 8]
mov edi, dword [esp + 0x34]
sbb edi, dword [esi + 0xc]
jmp 0x100f1118
mov eax, dword [esp + 0x7c]
test edx, edx
je 0x100f1021
mov eax, dword [esi - 0x20]
cdq
xor ecx, ecx
test edi, edi
mov dword [esp + 0x48], edx
mov ebx, eax
mov eax, dword [esi + 0x14]
sete cl
add eax, 9
xor edx, edx
mov dword [esp + 0x4c], ecx
cmp eax, dword [esi + 0x18]
jbe 0x100f105a
mov ecx, dword [esp + 0x18]
lea edx, [esi + 0x10]
push eax
call fcn.100e0470
add esp, 4
test eax, eax
jne 0x100f109e
mov ecx, dword [esp + 0x4c]
xor edx, edx
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x14]
test edx, edx
ja 0x100f108f
jb 0x100f106b
cmp ecx, 0x7f
ja 0x100f1074
mov byte [eax], cl
mov eax, 1
jmp 0x100f109b
test edx, edx
ja 0x100f108f
jb 0x100f1082
cmp ecx, 0x3fff
ja 0x100f108f
mov byte [eax], 0x80
mov byte [eax + 1], cl
mov eax, 2
jmp 0x100f109b
push edx
push ecx
mov ecx, eax
call fcn.10103800
add esp, 8
add dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
add eax, 9
cmp eax, dword [esi + 0x18]
jbe 0x100f10bd
mov ecx, dword [esp + 0x18]
lea edx, [esi + 0x10]
push eax
call fcn.100e0470
add esp, 4
test eax, eax
jne 0x100f1110
mov ecx, dword [esi + 0x14]
add ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x48]
test edx, edx
ja 0x100f1103
jb 0x100f10d2
cmp ebx, 0x7f
ja 0x100f10de
and bl, 0x7f
mov eax, 1
mov byte [ecx], bl
jmp 0x100f110d
test edx, edx
ja 0x100f1103
jb 0x100f10ec
cmp ebx, 0x3fff
ja 0x100f1103
mov eax, ebx
shrd eax, edx, 7
or al, 0x80
and bl, 0x7f
mov byte [ecx], al
mov eax, 2
mov byte [ecx + 1], bl
jmp 0x100f110d
push edx
push ebx
call fcn.10103800
add esp, 8
add dword [esi + 0x14], eax
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x10]
add eax, 9
cmp eax, dword [ecx + 8]
jbe 0x100f113c
mov edx, ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.100e0470
add esp, 4
test eax, eax
jne 0x100f118f
lea ecx, [esi + 0x10]
mov edx, dword [ecx + 4]
add edx, dword [ecx]
test edi, edi
ja 0x100f117d
jb 0x100f114c
cmp ebx, 0x7f
ja 0x100f1158
and bl, 0x7f
mov eax, 1
mov byte [edx], bl
jmp 0x100f118c
test edi, edi
ja 0x100f117d
jb 0x100f1166
cmp ebx, 0x3fff
ja 0x100f117d
mov eax, ebx
shrd eax, edi, 7
or al, 0x80
and bl, 0x7f
mov byte [edx], al
mov eax, 2
mov byte [edx + 1], bl
jmp 0x100f118c
push edi
push ebx
mov ecx, edx
call fcn.10103800
add esp, 8
lea ecx, [esi + 0x10]
add dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
inc edx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 4], 1
cmp dword [ebx], 0
mov dword [esp + 0x20], edx
je 0x100f0c60
mov esi, dword [esp + 0x30]
cmp byte [esp + 0xb0], 0
jne 0x100f1230
cmp byte [esp + 0xb1], 0
jne 0x100f1230
sub esi, dword [esp + 0xa8]
mov edi, dword [esp + 0x34]
sbb edi, dword [esp + 0xac]
mov eax, dword [esp + 0x88]
add eax, 9
cmp eax, dword [esp + 0x8c]
jbe 0x100f1215
push eax
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.100e0470
add esp, 4
test eax, eax
jne 0x100f1259
mov ecx, dword [esp + 0x88]
add ecx, dword [esp + 0x84]
push edi
push esi
call fcn.10103910
mov esi, dword [esp + 0x38]
jmp 0x100f1277
mov eax, dword [esp + 0x88]
add eax, 9
cmp eax, dword [esp + 0x8c]
jbe 0x100f125f
push eax
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.100e0470
add esp, 4
test eax, eax
je 0x100f125f
mov esi, dword [esp + 0x30]
jmp 0x100f1281
push dword [esp + 0x34]
mov ecx, dword [esp + 0x8c]
add ecx, dword [esp + 0x88]
push esi
call fcn.10103910
add esp, 8
add dword [esp + 0x88], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], eax
mov word [esp + 0xb0], 0
cmp dword [esp + 0x5c], 1
jne 0x100f13c8
mov esi, dword [esp + 0x54]
cmp byte [esi + 0x5c], 0
je 0x100f1340
mov eax, dword [esp + 0x88]
add eax, 9
cmp eax, dword [esp + 0x8c]
jbe 0x100f12df
push eax
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.100e0470
add esp, 4
test eax, eax
jne 0x100f12f8
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov byte [ecx + eax], 0
inc dword [esp + 0x88]
cmp dword [esi + 0x58], 0
jle 0x100f1340
mov eax, dword [esp + 0x88]
add eax, 9
cmp eax, dword [esp + 0x8c]
jbe 0x100f1327
push eax
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.100e0470
add esp, 4
test eax, eax
jne 0x100f1340
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov byte [ecx + eax], 0
inc dword [esp + 0x88]
mov ebx, dword [esp + 0xc]
cmp dword [ebx + 0x24], 0
mov esi, dword [esp + 0x10]
jne 0x100f14b2
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x48]
movzx edi, word [eax + 4]
mov dword [esp + 0x28], 0
lea eax, [edi + edi*2]
shl eax, 5
add eax, 0x50
add esi, eax
lea eax, [esp + 0x28]
push eax
push esi
push ebx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], esi
call eax
add esp, 0xc
cmp dword [esi + 0xc], 0
mov esi, dword [esp + 0x10]
je 0x100f1440
cmp dword [esp + 0x28], 0
jne 0x100f1440
lea eax, [esp + 0x14]
mov edx, edi
push eax
mov ecx, esi
call fcn.100ee0a0
add esp, 4
test eax, eax
jne 0x100f1440
mov eax, dword [esp + 0x14]
jmp 0x100f1490
mov edi, dword [esp + 0x54]
movzx eax, byte [edi + 0x5c]
mov ecx, dword [edi + 0x58]
lea esi, [eax + ecx*2]
mov eax, dword [esp + 0x88]
add eax, 9
cmp eax, dword [esp + 0x8c]
jbe 0x100f13ff
push eax
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.100e0470
add esp, 4
test eax, eax
jne 0x100f1421
mov ecx, dword [esp + 0x88]
mov eax, esi
add ecx, dword [esp + 0x84]
cdq
push edx
push eax
call fcn.10103910
add esp, 8
add dword [esp + 0x88], eax
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x78]
push 0x100f06f0
push eax
mov edx, edi
mov ecx, ebx
call fcn.100ee8a0
add esp, 8
jmp 0x100f1344
push 1
push edi
mov edx, esi
mov ecx, ebx
call fcn.100edf00
mov edx, dword [esi + 0x48]
add esp, 8
movzx eax, word [edx + 4]
lea ecx, [eax + eax*2]
shl ecx, 5
cmp dword [ecx + esi + 0x5c], 0
sete al
mov byte [esi + 0x10], al
mov eax, dword [ecx + esi + 0xa0]
mov ecx, dword [ecx + esi + 0xa4]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
movzx eax, word [edx + 4]
lea eax, [eax + eax*2]
shl eax, 5
add eax, 0x50
add eax, esi
cmp dword [eax + 0xc], 0
je 0x100f14b2
cmp byte [esi + 0x38], 0
je 0x100f14a8
cmp dword [eax + 0x58], 0
jne 0x100f14a8
cmp dword [ebx + 0x24], 0
je 0x100f1360
jmp 0x100f14b2
push eax
mov eax, dword [esi + 0x2c]
push esi
call eax
add esp, 8
mov edx, esi
mov ecx, ebx
call fcn.100ef210
test eax, eax
je 0x100f0a50
mov ebx, dword [esp + 0x2c]
lea edx, [esp + 0x78]
mov edi, dword [esp + 0xc]
add ebx, 8
push ebx
mov ecx, edi
mov dword [esp + 0x60], ebx
call fcn.100efeb0
add esp, 4
cmp dword [edi + 0x24], 0
jne 0x100f1505
cmp byte [esi + 0x10], 0
jne 0x100f1505
mov edx, esi
mov ecx, edi
call fcn.100f0060
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [ecx], eax
jmp 0x100f1896
mov esi, dword [esp + 0x3c]
test esi, esi
jle 0x100f184d
xor ecx, ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ecx
nop dword [eax + eax]
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 8]
mov ecx, dword [ecx + eax]
mov eax, ecx
cdq
mov edi, eax
mov dword [esp + 0x14], edx
shl eax, 5
mov dword [esp + 0x2c], eax
lea eax, [ecx + 1]
cdq
mov ebx, eax
mov dword [esp + 0x24], edi
xor eax, eax
shl ebx, 5
sub eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc]
sbb ebx, 0
cmp dword [eax + 0x24], 0
jne 0x100f16fa
cmp dword [eax + 0x30], 0
lea edi, [eax + 0x30]
jne 0x100f162c
mov eax, dword [eax]
push dword [eax + 8]
push dword [eax + 4]
push str.DELETE_FROM__q._q_data_WHERE_id___AND_id__
call sym.sqlite3.dll_sqlite3_mprintf
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x24], 0
jne 0x100f15c2
test esi, esi
je 0x100f15b6
mov ecx, dword [eax]
mov edx, esi
push 0
push edi
push 0
mov ecx, dword [ecx]
push 0x85
push 0xffffffffffffffff
call fcn.10071fd0
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov dword [ecx + 0x24], eax
jmp 0x100f15c6
mov dword [eax + 0x24], 7
jmp 0x100f16f6
test esi, esi
je 0x100f1622
cmp dword [0x1011d0f8], 0
je 0x100f1614
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100f15e2
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100f161e
push eax
call dword [0x1011d150]
jmp 0x100f161b
push esi
call dword [0x1011d11c]
add esp, 4
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x24], 0
jne 0x100f16f6
mov esi, dword [edi]
mov edx, 1
mov ecx, esi
call fcn.10031340
test eax, eax
jne 0x100f1684
mov eax, dword [esi + 0x6c]
mov ecx, 0x2400
test word [eax + 8], cx
mov ecx, dword [esp + 0x2c]
je 0x100f165f
push ecx
push 0
mov ecx, eax
call fcn.100282e0
add esp, 8
jmp 0x100f1671
mov dword [eax + 4], ecx
mov ecx, 4
mov dword [eax], 0
mov word [eax + 8], cx
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100f1684
push eax
call dword [0x1011d150]
add esp, 4
mov esi, dword [edi]
mov edx, 2
mov ecx, esi
call fcn.10031340
test eax, eax
jne 0x100f16d9
mov eax, dword [esi + 0x6c]
mov ecx, 0x2400
test word [eax + 0x30], cx
mov ecx, dword [esp + 0x28]
je 0x100f16b7
push ebx
push ecx
lea ecx, [eax + 0x28]
call fcn.100282e0
add esp, 8
jmp 0x100f16c6
mov dword [eax + 0x28], ecx
mov ecx, 4
mov dword [eax + 0x2c], ebx
mov word [eax + 0x30], cx
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100f16d9
push eax
call dword [0x1011d150]
add esp, 4
push dword [edi]
call sym.sqlite3.dll_sqlite3_step
add esp, 4
push dword [edi]
call sym.sqlite3.dll_sqlite3_reset
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx + 0x24], eax
mov eax, ecx
mov edi, dword [esp + 0x24]
cmp dword [eax + 0x38], 0
lea ebx, [eax + 0x38]
jne 0x100f17bb
mov eax, dword [eax]
push dword [eax + 8]
push dword [eax + 4]
push str.DELETE_FROM__q._q_idx_WHERE_segid_
call sym.sqlite3.dll_sqlite3_mprintf
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x24], 0
jne 0x100f175b
test esi, esi
je 0x100f174f
mov ecx, dword [eax]
mov edx, esi
push 0
push ebx
push 0
mov ecx, dword [ecx]
push 0x85
push 0xffffffffffffffff
call fcn.10071fd0
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov dword [ecx + 0x24], eax
jmp 0x100f175f
mov dword [eax + 0x24], 7
jmp 0x100f182f
test esi, esi
je 0x100f17bb
cmp dword [0x1011d0f8], 0
je 0x100f17ad
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100f177b
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100f17b7
push eax
call dword [0x1011d150]
jmp 0x100f17b4
push esi
call dword [0x1011d11c]
add esp, 4
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x24], 0
jne 0x100f182f
mov esi, dword [ebx]
mov edx, 1
mov ecx, esi
call fcn.10031340
test eax, eax
jne 0x100f1814
mov eax, dword [esi + 0x6c]
mov ecx, 0x2400
test word [eax + 8], cx
mov ecx, dword [esp + 0x14]
je 0x100f17f3
push ecx
push edi
mov ecx, eax
call fcn.100282e0
add esp, 8
jmp 0x100f1801
mov dword [eax + 4], ecx
mov ecx, 4
mov dword [eax], edi
mov word [eax + 8], cx
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100f1814
push eax
call dword [0x1011d150]
add esp, 4
push dword [ebx]
call sym.sqlite3.dll_sqlite3_step
add esp, 4
push dword [ebx]
call sym.sqlite3.dll_sqlite3_reset
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx + 0x24], eax
mov ecx, dword [esp + 0x44]
add ecx, 0xc
sub dword [esp + 0x40], 1
mov dword [esp + 0x44], ecx
jne 0x100f1520
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 4]
cmp eax, esi
je 0x100f1874
mov ecx, dword [edi + 8]
sub eax, esi
lea eax, [eax + eax*2]
shl eax, 2
push eax
lea eax, [esi + esi*2]
lea eax, [ecx + eax*4]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [esp + 0x1c]
sub dword [eax + 0x10], esi
sub dword [edi + 4], esi
mov esi, dword [esp + 0x10]
mov dword [edi], 0
cmp dword [ebx], 0
jne 0x100f1896
mov ecx, dword [esp + 0x58]
dec dword [ecx]
dec dword [eax + 0x10]
test esi, esi
je 0x100f1b2e
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jle 0x100f1a64
add esi, 0x94
nop
mov edi, dword [esi]
test edi, edi
je 0x100f190e
cmp dword [0x1011d0f8], 0
je 0x100f1904
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100f18d2
push eax
call dword [0x1011d148]
add esp, 4
push edi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100f190e
push eax
call dword [0x1011d150]
jmp 0x100f190b
push edi
call dword [0x1011d11c]
add esp, 4
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov edi, dword [esi - 0x38]
test edi, edi
je 0x100f197b
cmp dword [0x1011d0f8], 0
je 0x100f1971
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100f193f
push eax
call dword [0x1011d148]
add esp, 4
push edi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100f1980
push eax
call dword [0x1011d150]
jmp 0x100f1978
push edi
call dword [0x1011d11c]
add esp, 4
mov eax, dword [0x1011f3e8]
mov edi, dword [esi - 0x34]
test edi, edi
je 0x100f19da
cmp dword [0x1011d0f8], 0
je 0x100f19d0
test eax, eax
je 0x100f199e
push eax
call dword [0x1011d148]
add esp, 4
push edi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100f19da
push eax
call dword [0x1011d150]
jmp 0x100f19d7
push edi
call dword [0x1011d11c]
add esp, 4
mov ecx, dword [esi - 4]
call fcn.100eb1a0
mov edi, dword [esi - 8]
test edi, edi
je 0x100f1a41
cmp dword [0x1011d0f8], 0
je 0x100f1a37
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100f1a05
push eax
call dword [0x1011d148]
add esp, 4
push edi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100f1a41
push eax
call dword [0x1011d150]
jmp 0x100f1a3e
push edi
call dword [0x1011d11c]
add esp, 4
push 0x60
lea eax, [esi - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x1c]
inc ebx
add esp, 0xc
add esi, 0x60
cmp ebx, dword [eax + 0x30]
jl 0x100f18b0
mov esi, eax
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x100f1ac3
cmp dword [0x1011d0f8], 0
je 0x100f1ab9
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100f1a87
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100f1ac3
push eax
call dword [0x1011d150]
jmp 0x100f1ac0
push esi
call dword [0x1011d11c]
add esp, 4
mov ebx, dword [esp + 0x10]
xorps xmm0, xmm0
movq qword [ebx + 0x1c], xmm0
mov dword [ebx + 0x24], 0
cmp dword [0x1011d0f8], 0
je 0x100f1b24
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100f1af2
push eax
call dword [0x1011d148]
add esp, 4
push ebx
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push ebx
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100f1b2e
push eax
call dword [0x1011d150]
jmp 0x100f1b2b
push ebx
call dword [0x1011d11c]
add esp, 4
lea ecx, [esp + 0x60]
call fcn.100e0620
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100f1b47
mov eax, dword [esp + 0xb4]
sub dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret