Function at 0x48e5f5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0xffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
add edx, 1
mov eax, dword [ecx + 0x2c]
adc eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x30], 0xb
je 0x48e904
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 8
ja case.0x48e5ee.1
mov eax, dword [ebp - 0x14]
jmp dword [eax*4 + 0x48e90c]
call fcn.00496bd0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x34], eax
jl 0x48e618
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 7
jmp 0x48e64a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], ecx
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x18
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.00496be0
add esp, 0xc
mov dword [ebp - 8], 0xffffffff
jmp case.0x48e5ee.1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
jne 0x48e67e
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x20
push ecx
push 0xffffffffffffffff
push 0x5dfe84
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call fcn.004a5470
add esp, 0x14
mov dword [ebp - 8], 1
mov dword [ebp - 0x18], 8
jmp case.0x48e5ee.1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 0
jne 0x48e755
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0x5f4417
push 0
lea edx, [ebp - 0x1c]
push edx
push 0xffffffffffffffff
push 0x5dfe9c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.004a5470
add esp, 0x14
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004a6070
add esp, 4
cmp eax, 0x64
jne 0x48e71f
push 1
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004a6320
add esp, 8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str._z_sSELECT_name_FROM___w_.sqlite_schema
call fcn.004a4380
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48e716
mov eax, 7
jmp 0x48e906
mov dword [ebp - 0x24], 0x5dfedc
jmp 0x48e6c8
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004a6660
add esp, 4
push 0
mov edx, dword [ebp - 4]
add edx, 0x20
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call fcn.004a5470
add esp, 0x14
mov eax, dword [ebp - 0xc]
push eax
call fcn.004a4590
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 9
jmp case.0x48e5ee.1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 0
jne 0x48e830
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0x5f445c
push 0
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
push 0x5dfee4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.004a5470
add esp, 0x14
mov edx, dword [ebp - 0x20]
push edx
call fcn.004a6070
add esp, 4
cmp eax, 0x64
jne 0x48e7fa
push 1
mov eax, dword [ebp - 0x20]
push eax
call fcn.004a6320
add esp, 8
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
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 fcn.004a4380
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48e7f1
mov eax, 7
jmp 0x48e906
mov dword [ebp - 0x2c], str._UNION
jmp 0x48e79f
mov edx, dword [ebp - 0x20]
push edx
call fcn.004a6660
add esp, 4
push 0
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call fcn.004a5470
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004a4590
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0xb
cmp dword [ebp - 8], 0
jge 0x48e854
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
jne 0x48e852
jmp 0x48e5c2
jmp 0x48e8c3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004a6070
add esp, 4
cmp eax, 0x64
jne 0x48e89c
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004a6320
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call fcn.004a65a0
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
jmp 0x48e8c3
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call fcn.004a6660
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x30], eax
jmp 0x48e5c2
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x48e8ce
jmp 0x48e904
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 8]
cmp ecx, dword [eax + 0x1c]
jg 0x48e8ff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.0049a1a0
add esp, 0xc
test eax, eax
jne 0x48e8ff
jmp 0x48e904
jmp 0x48e5c2
xor eax, eax
mov esp, ebp
pop ebp
ret