Function at 0x100d2fc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0x10112e3c
mov dword [ebp - 8], str._rowid___
cmp dword [ebp + 0x18], ebx
jne 0x100d2fe8
mov dword [ebp - 8], 0x1011e110
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x10123cd4
lea esi, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.100d2500
mov esi, dword [ebp + 0x14]
add esp, 8
cmp esi, ebx
je 0x100d3090
mov ecx, str.sqlite_stat1
sub esi, ecx
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x100d307b
cmp eax, ebx
jne 0x100d308d
lea ecx, [ebp - 4]
push ecx
push str._AND___6_OR__3_IS_stat_
lea esi, [ebp - 0x34]
call fcn.100d2500
lea edx, [ebp - 4]
push edx
push str.tbl__idx
lea esi, [ebp - 0x1c]
call fcn.100d2500
lea eax, [ebp - 4]
push eax
push str._1___CASE_WHEN__2X_THEN_NULL_ELSE__2_END_
lea esi, [ebp - 0x28]
call fcn.100d2500
mov edi, dword [ebp - 0x1c]
add esp, 0x18
mov dword [ebp - 8], str.tbl___2__stat
jmp 0x100d3146
movzx edx, byte [edx + 0x10112f10]
movzx eax, byte [eax + 0x10112f10]
sub eax, edx
jne 0x100d3090
inc ecx
jmp 0x100d3027
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
jle 0x100d3144
mov edi, dword [ebp + 0x20]
mov esi, 1
mov dword [ebp + 0x18], esi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 0x24]
cmp byte [ecx + esi - 1], 0
je 0x100d310b
mov ebx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
push ebx
lea esi, [ebp - 0x1c]
call fcn.100d2500
lea eax, [ebp - 4]
push eax
push ebx
lea esi, [ebp - 0x28]
call fcn.100d2500
mov ebx, dword [edi]
lea ecx, [ebp - 4]
push ecx
lea edi, [ebp - 0x1c]
mov dword [ebp - 0xc], 0x1011b050
call fcn.100d2630
mov edx, dword [ebp + 0x18]
add esp, 0x14
push edx
push 0x1011b124
lea eax, [ebp - 4]
push eax
mov ecx, esi
push ecx
call fcn.100d25d0
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
add esp, 0x10
jmp 0x100d312c
mov edx, dword [edi]
mov eax, dword [ebp + 0x14]
push edx
push eax
push esi
lea ecx, [esi + ebx]
push ecx
push str._AND____d_OR___d_IS__w._w_
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.100d25d0
add esp, 0x1c
inc esi
add edi, 4
lea ecx, [esi - 1]
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x18], esi
cmp ecx, ebx
jl 0x100d30a9
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x34]
jne 0x100d3204
cmp dword [ebp + 0xc], 0
mov eax, ebx
jne 0x100d315f
mov eax, 0x10112e3c
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push edi
push ecx
push edx
push eax
mov eax, dword [ebp - 8]
push eax
push str.SELECT__s_s_FROM__Q._Q_WHERE___s__IS___s_
call sym.MyService.dll_sqlite3_mprintf
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x100d318d
mov dword [ebp - 4], 7
jmp 0x100d3204
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
push 0
push ecx
push 0
push pe_nt_image_headers32
push 0xffffffffffffffff
push esi
push edx
call fcn.10074b10
add esp, 0x1c
cmp dword [0x1012c3e8], 0
mov dword [ebp - 4], eax
je 0x100d31fa
mov eax, dword [0x1013afb8]
test eax, eax
je 0x100d31c8
push eax
call dword [0x1012c438]
add esp, 4
push esi
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
add esp, 4
push esi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x100d3209
push eax
call dword [0x1012c440]
jmp 0x100d3201
push esi
call dword [0x1012c40c]
add esp, 4
mov eax, dword [0x1013afb8]
test ebx, ebx
je 0x100d3265
cmp dword [0x1012c3e8], 0
je 0x100d3256
test eax, eax
je 0x100d3224
push eax
call dword [0x1012c438]
add esp, 4
push ebx
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
add esp, 4
push ebx
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x100d3265
push eax
call dword [0x1012c440]
jmp 0x100d325d
push ebx
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test edi, edi
je 0x100d32c1
cmp dword [0x1012c3e8], 0
je 0x100d32b2
test eax, eax
je 0x100d3280
push eax
call dword [0x1012c438]
add esp, 4
push edi
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
add esp, 4
push edi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x100d32c1
push eax
call dword [0x1012c440]
jmp 0x100d32b9
push edi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x100d3326
cmp dword [0x1012c3e8], 0
je 0x100d331c
test eax, eax
je 0x100d32df
push eax
call dword [0x1012c438]
add esp, 4
push esi
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
add esp, 4
push esi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x100d3326
push eax
call dword [0x1012c440]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x1012c40c]
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret