Function at 0x100f2de0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x14], ebx
jne 0x100f2eb6
cmp dword [eax + 0x24], ebx
lea edi, [eax + 0x24]
jne 0x100f2e63
mov eax, dword [ecx + 0x2c]
mov edx, dword [ecx + 0x28]
push eax
mov eax, dword [ecx + 0x38]
push edx
push eax
push str.SELECT__s_FROM__s_T_WHERE_T._Q_
call sym.MyService.dll_sqlite3_mprintf
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100f2e2d
lea ebx, [eax + 7]
jmp 0x100f2e63
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
inc dword [eax + 0x44]
mov eax, dword [edx]
push 0
push edi
push 0
push 0x81
push 0xffffffffffffffff
push esi
push eax
call fcn.10074b10
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
dec dword [eax + 0x44]
add esp, 0x1c
push esi
call sym.MyService.dll_sqlite3_free
add esp, 4
mov edi, dword [edi]
push edi
mov dword [ebp - 8], edi
call sym.MyService.dll_sqlite3_reset
add esp, 4
mov esi, ebx
test ebx, ebx
je 0x100f2e80
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push 1
push edi
call sym.MyService.dll_sqlite3_bind_int64
push edi
call sym.MyService.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x64
je 0x100f2eae
push edi
call sym.MyService.dll_sqlite3_reset
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov ebx, edi
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffff
mov edi, 1
mov dword [ebp - 0xc], edx
jmp 0x100f2ed0
cmp edi, dword [ecx + 0xc]
jg 0x100f2fdf
mov edx, dword [ecx + 0x14]
cmp byte [edx + edi - 1], 0
jne 0x100f2fb1
test ebx, ebx
je 0x100f2f00
push edi
push ebx
call sym.MyService.dll_sqlite3_column_text
push edi
push ebx
mov esi, eax
call sym.MyService.dll_sqlite3_column_bytes
add esp, 0x10
jmp 0x100f2f52
cmp dword [ebp + 0x14], 0
je 0x100f2fb1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
je 0x100f2f42
movzx ecx, word [eax + 0x10]
mov edx, ecx
and edx, 0x202
cmp edx, 0x202
jne 0x100f2f32
cmp byte [eax + 0x12], 1
jne 0x100f2f32
mov eax, dword [eax + 8]
jmp 0x100f2f42
test cl, 1
je 0x100f2f3b
xor eax, eax
jmp 0x100f2f42
mov bl, 1
call fcn.1002eec0
mov esi, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call sym.MyService.dll_sqlite3_value_bytes
add esp, 4
mov dword [ebp - 0x10], 0
test esi, esi
je 0x100f2f7e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [edx + 8]
push 0x100f2d90
push eax
push esi
push 4
lea eax, [ebp - 0x18]
push eax
push ecx
call edx
add esp, 0x18
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
lea ecx, [eax + edi*8 - 8]
mov eax, dword [ebp - 0x10]
cdq
sub dword [ecx], eax
sbb dword [ecx + 4], edx
mov eax, dword [ebx + 0x18]
cmp dword [eax + edi*8 - 4], 0
jg 0x100f2fa9
jl 0x100f2fa4
cmp dword [eax + edi*8 - 8], 0
jae 0x100f2fa9
mov esi, 0x10b
mov ecx, dword [ebp - 4]
mov eax, ebx
mov ebx, dword [ebp - 8]
add dword [ebp - 0xc], 4
inc edi
test esi, esi
je 0x100f2ed0
or ecx, 0xffffffff
add dword [eax + 0x10], ecx
adc dword [eax + 0x14], ecx
push ebx
call sym.MyService.dll_sqlite3_reset
add esp, 4
test esi, esi
jne 0x100f2fd6
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x100f2fbe
cmp dword [eax + 0x14], esi
jg 0x100f2fbe
jl 0x100f2ff0
cmp dword [eax + 0x10], 1
jae 0x100f2fbe
mov esi, 0x10b
jmp 0x100f2fc7