Function at 0x499750
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 0x499ac4
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.0x4997ae.1
mov eax, dword [ebp - 0x14]
jmp dword [eax*4 + 0x499acc]
call fcn.004a1d90
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x34], eax
jl 0x4997d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 7
jmp 0x49980a
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.004a1da0
add esp, 0xc
mov dword [ebp - 8], 0xffffffff
jmp case.0x4997ae.1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
jne 0x49983e
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x20
push ecx
push 0xffffffffffffffff
push 0x5e6e84
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call fcn.004b0630
add esp, 0x14
mov dword [ebp - 8], 1
mov dword [ebp - 0x18], 8
jmp case.0x4997ae.1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 0
jne 0x499915
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0x5fb487
push 0
lea edx, [ebp - 0x1c]
push edx
push 0xffffffffffffffff
push 0x5e6e9c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.004b0630
add esp, 0x14
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004b1230
add esp, 4
cmp eax, 0x64
jne 0x4998df
push 1
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004b14e0
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.004af540
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4998d6
mov eax, 7
jmp 0x499ac6
mov dword [ebp - 0x24], 0x5e6edc
jmp 0x499888
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004b1820
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.004b0630
add esp, 0x14
mov eax, dword [ebp - 0xc]
push eax
call fcn.004af750
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 9
jmp case.0x4997ae.1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 0
jne 0x4999f0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0x5fb4cc
push 0
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
push 0x5e6ee4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.004b0630
add esp, 0x14
mov edx, dword [ebp - 0x20]
push edx
call fcn.004b1230
add esp, 4
cmp eax, 0x64
jne 0x4999ba
push 1
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b14e0
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.004af540
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4999b1
mov eax, 7
jmp 0x499ac6
mov dword [ebp - 0x2c], str._UNION
jmp 0x49995f
mov edx, dword [ebp - 0x20]
push edx
call fcn.004b1820
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.004b0630
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004af750
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0xb
cmp dword [ebp - 8], 0
jge 0x499a14
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
jne 0x499a12
jmp 0x499782
jmp 0x499a83
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004b1230
add esp, 4
cmp eax, 0x64
jne 0x499a5c
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004b14e0
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.004b1760
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
jmp 0x499a83
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call fcn.004b1820
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 0x499782
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x499a8e
jmp 0x499ac4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 8]
cmp ecx, dword [eax + 0x1c]
jg 0x499abf
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.004a5360
add esp, 0xc
test eax, eax
jne 0x499abf
jmp 0x499ac4
jmp 0x499782
xor eax, eax
mov esp, ebp
pop ebp
ret