Function at 0x10005640
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
or edi, 0xffffffff
add dword [esi + 0x28], 1
adc dword [esi + 0x2c], ebx
cmp dword [esi + 0x30], 0xb
je 0x10005751
mov eax, dword [esi + 0x30]
dec eax
cmp eax, 8
ja case.0x1000566f.2
jmp dword [eax*4 + 0x10005908]
mov ecx, dword [esi + 0x34]
cmp ecx, 0x93
jl 0x10005697
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 7
or edi, 0xffffffff
jmp 0x100058c5
lea eax, [ecx + 1]
mov dword [esi + 0x34], eax
cmp ecx, 0x92
ja 0x100056c0
movzx ecx, word [eax*2 + 0x10118300]
add ecx, 0x10117e48
mov dword [esi + 0x18], ecx
movzx edx, byte [eax + 0x10118250]
mov dword [esi + 0x1c], edx
or edi, 0xffffffff
jmp 0x100058c5
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jne 0x100056ee
push 0
push eax
mov eax, dword [esi + 4]
push 0
push pe_nt_image_headers32
push 0xffffffffffffffff
push str.PRAGMA_database_list
push eax
call fcn.10074b10
add esp, 0x1c
mov edi, 1
lea ebx, [edi + 7]
mov eax, dword [esi + 0x20]
push eax
call sym.MyService.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100058d0
mov ecx, dword [esi + 0x20]
push edi
push ecx
call sym.MyService.dll_sqlite3_column_text
mov edx, dword [esi + 0x20]
push edi
push edx
mov dword [esi + 0x18], eax
call sym.MyService.dll_sqlite3_column_bytes
add esp, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x10005751
cmp eax, dword [esi + 0x1c]
jg 0x100058e6
mov ecx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0x18]
push eax
push ecx
call sym.MyService.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
jne 0x100058e6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x20], 0
jne 0x10005802
mov edx, dword [esi + 4]
xor edi, edi
push edi
lea ecx, [ebp - 4]
push ecx
push edi
push pe_nt_image_headers32
push 0xffffffffffffffff
push str.PRAGMA_database_list
push edx
mov dword [ebp + 8], 0x10112e3c
call fcn.10074b10
mov ebx, dword [ebp - 4]
push ebx
call sym.MyService.dll_sqlite3_step
add esp, 0x20
cmp eax, 0x64
jne 0x100057da
lea esp, [esp]
push 1
push ebx
call sym.MyService.dll_sqlite3_column_text
push eax
mov eax, dword [ebp + 8]
push eax
push edi
push str._z_sSELECT_name_FROM___w_.sqlite_schema
call sym.MyService.dll_sqlite3_mprintf
mov edi, eax
add esp, 0x18
test edi, edi
je 0x100058f9
push ebx
mov dword [ebp + 8], str._UNION
call sym.MyService.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
je 0x100057a0
push ebx
call sym.MyService.dll_sqlite3_finalize
mov ecx, dword [esi + 4]
push 0
lea eax, [esi + 0x20]
push eax
push 0
push pe_nt_image_headers32
push 0xffffffffffffffff
push edi
push ecx
call fcn.10074b10
push edi
call sym.MyService.dll_sqlite3_free
add esp, 0x24
xor edi, edi
lea ebx, [edi + 9]
jmp 0x100056f6
cmp dword [esi + 0x20], 0
jne 0x100058b3
mov eax, dword [esi + 4]
xor edi, edi
push edi
lea edx, [ebp - 8]
push edx
push edi
push pe_nt_image_headers32
push 0xffffffffffffffff
push str.PRAGMA_database_list
push eax
mov dword [ebp + 8], 0x10112e3c
call fcn.10074b10
mov ebx, dword [ebp - 8]
push ebx
call sym.MyService.dll_sqlite3_step
add esp, 0x20
cmp eax, 0x64
jne 0x1000588b
jmp 0x10005850
push 1
push ebx
call sym.MyService.dll_sqlite3_column_text
mov ecx, dword [ebp + 8]
push eax
push eax
push ecx
push edi
push str._z_sSELECT_pti.name_FROM___w_.sqlite_schema_AS_sm_JOIN_pragma_table_info_sm.name__Q__AS_pti_WHERE_sm.typetable
call sym.MyService.dll_sqlite3_mprintf
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x100058f9
push ebx
mov dword [ebp + 8], str._UNION
call sym.MyService.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
je 0x10005850
push ebx
call sym.MyService.dll_sqlite3_finalize
mov edx, dword [esi + 4]
push 0
lea eax, [esi + 0x20]
push eax
push 0
push pe_nt_image_headers32
push 0xffffffffffffffff
push edi
push edx
call fcn.10074b10
push edi
call sym.MyService.dll_sqlite3_free
add esp, 0x24
xor edi, edi
lea ebx, [edi + 0xb]
jmp 0x100056f6
test edi, edi
jns 0x100056f6
cmp dword [esi + 0x18], 0
je 0x100058e6
jmp 0x10005728
mov edx, dword [esi + 0x20]
push edx
call sym.MyService.dll_sqlite3_finalize
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x30], 0xb
jne 0x10005662
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret