Function at 0x42de40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520ce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
push eax
push str.PRAGMA_table_info_
lea ecx, [ebp - 0xc0]
push ecx
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 1
push 0x52e708
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 3
lea esi, [ebp - 0xc0]
call fcn.004150b0
mov eax, 0x528928
lea ecx, [ebp - 0x88]
call fcn.0040fae0
mov byte [ebp - 4], 4
push ebx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ec1a0
test eax, eax
je 0x42e1cb
mov eax, 0x529050
lea ecx, [ebp - 0x6c]
call fcn.0040fae0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x88]
call fcn.004f07a0
add esp, 8
mov byte [ebp - 4], 7
lea esi, [ebp - 0x6c]
call fcn.004150b0
mov ecx, dword [ebp - 0x94]
sub ecx, dword [ebp - 0x98]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 0x18], edi
jne 0x42df6f
mov byte [ebp - 4], 4
lea esi, [ebp - 0x98]
call fcn.0040fcb0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x88]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x34]
call fcn.004150b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x14], ebx
cmp ebx, edi
jae 0x42e016
mov eax, 0x528d98
lea ecx, [ebp - 0xdc]
call fcn.0040fae0
mov byte [ebp - 4], 8
lea edx, [ebx*8]
sub edx, ebx
mov eax, dword [ebp - 0x98]
lea ecx, [eax + edx*4]
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.004f07a0
add esp, 8
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0xdc]
call fcn.004150b0
mov ecx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 3
jb 0x42e004
lea ecx, [esi + 0x1c]
mov edi, dword [ebp + 0xc]
add edi, 0x1c
call fcn.0040fcf0
mov ecx, dword [ebp - 0x60]
add ecx, 0x38
mov edi, dword [ebp + 0xc]
add edi, 0x2c
call fcn.0040fcf0
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 7
lea esi, [ebp - 0x60]
call fcn.0040fcb0
inc ebx
jmp 0x42df6f
mov edx, dword [ebp + 0xc]
push edx
push str.SELECT_sql_FROM_sqlite_master_WHERE_type__table_AND_name__
lea eax, [ebp - 0x118]
push eax
call fcn.00414000
add esp, 0xc
mov bl, 0xb
mov byte [ebp - 4], bl
push 0x529e7c
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0xc
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00411aa0
mov byte [ebp - 4], bl
lea esi, [ebp - 0xc0]
call fcn.004150b0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x118]
call fcn.004150b0
mov eax, 0x528928
lea ecx, [ebp - 0x50]
call fcn.0040fae0
mov byte [ebp - 4], 0xd
push 0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ec1a0
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x42e0af
push 0
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebx + 0x4c]
or eax, 0xffffffff
call fcn.00411b10
push 0xffffffffffffffff
lea eax, [ebp - 0xf8]
push eax
mov ecx, 3
mov edx, ebx
call fcn.0040fbe0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xf8]
call fcn.004f1130
test al, al
je 0x42e16d
lea ecx, [ebp - 0xf8]
push ecx
push str.SELECT_COUNT___as_Cnt_FROM_UT_REPORT_WHERE_ReportId_
lea edx, [ebp - 0xc0]
push edx
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 0xf
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00411aa0
mov byte [ebp - 4], 0xe
lea esi, [ebp - 0xc0]
call fcn.004150b0
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ec1a0
test eax, eax
je 0x42e171
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
jae 0x42e136
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0xdc]
call fcn.0040fae0
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0xdc]
call fcn.00401360
mov edi, eax
mov byte [ebp - 4], 0xe
lea esi, [ebp - 0xdc]
call fcn.004150b0
xor eax, eax
test edi, edi
setg al
mov byte [ebx + 0x68], al
jmp 0x42e171
mov byte [ebx + 0x68], 0
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0xf8]
call fcn.004150b0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x50]
call fcn.004150b0
mov byte [ebp - 4], 4
lea esi, [ebp - 0x98]
call fcn.0040fcb0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x88]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x34]
call fcn.004150b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [ebp - 4], 3
lea esi, [ebp - 0x88]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x34]
call fcn.004150b0
mov dword [ebp - 4], 0xffffffff
jmp 0x42df5a