Function at 0x4e7870
Capabilities:
Contain obfuscated stackstrings
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520b28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1cc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x54], 7
xor ebx, ebx
mov dword [ebp - 0x58], ebx
xor eax, eax
mov word [ebp - 0x68], ax
push ebx
mov eax, 0x528928
lea esi, [ebp - 0x68]
call fcn.00412b10
mov dword [ebp - 4], ebx
push ebx
mov eax, 0x528928
mov ebx, dword [ebp + 0xc]
mov esi, ebx
call fcn.00412b10
mov byte [ebp - 4], 1
mov esi, 0x549378
mov ecx, edi
call fcn.00413bd0
test al, al
jne 0x4e7e03
mov esi, str.TABLES
mov ecx, edi
call fcn.00413bd0
test al, al
jne 0x4e7e03
mov esi, str.VIEWS
mov ecx, edi
call fcn.00413bd0
test al, al
je 0x4e7d0f
mov eax, 0x528928
lea ecx, [ebp - 0x30]
call fcn.0040fae0
mov byte [ebp - 4], 0x17
mov eax, str.SELECT_name_FROM_sqlite_master_WHERE_typeview
lea ecx, [ebp - 0x4c]
call fcn.0040fae0
mov byte [ebp - 4], 0x18
push 0
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004ec1a0
mov edi, eax
mov byte [ebp - 4], 0x17
lea esi, [ebp - 0x4c]
call fcn.004150b0
test edi, edi
je 0x4e7d03
mov eax, 0x529050
lea ecx, [ebp - 0x4c]
call fcn.0040fae0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x30]
call fcn.004f07a0
add esp, 8
mov byte [ebp - 4], 0x1b
lea esi, [ebp - 0x4c]
call fcn.004150b0
xor esi, esi
mov dword [ebp - 0x70], esi
mov edi, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x4e7c5a
lea ebx, [esi*8]
sub ebx, esi
add ebx, ebx
add ebx, ebx
lea edx, [edi + ebx]
mov ecx, 3
cmp dword [edx + 0x10], ecx
jbe 0x4e7c4e
mov eax, dword [edx + 0x10]
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040fbe0
mov byte [ebp - 4], 0x1c
mov eax, 0x52cbb0
lea ecx, [ebp - 0xe4]
call fcn.0040fae0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x4c]
call fcn.004f1130
test al, al
je 0x4e7aa9
lea ecx, [ebp - 0x4c]
push ecx
push str.SELECT_Note_FROM_UT_REPORT_WHERE_ReportId
lea edx, [ebp - 0x138]
push edx
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 0x1e
mov edi, eax
lea esi, [ebp - 0x68]
call fcn.00411aa0
mov byte [ebp - 4], 0x1d
lea esi, [ebp - 0x138]
call fcn.004150b0
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0x4e7a4d
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419990
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0xa4]
call fcn.0041a3d0
test al, al
jne 0x4e7a9a
xor eax, eax
lea ecx, [ebp - 0xa4]
call fcn.0041a1d0
test al, al
jne 0x4e7a9a
xor eax, eax
lea ecx, [ebp - 0xa4]
call fcn.0041a0b0
lea ecx, [ebp - 0xe4]
push ecx
call fcn.0040fb70
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0xa4]
call fcn.0041a010
mov eax, dword [ebp - 0xb8]
add eax, ebx
push eax
push str.pragma_table_info__
lea eax, [ebp - 0x174]
push eax
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 0x20
push 0x549498
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0x21
mov edi, eax
lea esi, [ebp - 0x68]
call fcn.00411aa0
mov byte [ebp - 4], 0x20
lea esi, [ebp - 0x11c]
call fcn.004150b0
mov byte [ebp - 4], 0x1d
lea esi, [ebp - 0x174]
call fcn.004150b0
mov eax, 0x528928
lea ecx, [ebp - 0x100]
call fcn.0040fae0
mov byte [ebp - 4], 0x22
push 0
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ec1a0
test eax, eax
je 0x4e7c1b
add ebx, dword [ebp - 0xb8]
lea eax, [ebp - 0xe4]
push eax
push ebx
lea ecx, [ebp - 0x8c]
push ecx
call fcn.00413c30
add esp, 0xc
mov byte [ebp - 4], 0x23
push 0x529050
push eax
lea edx, [ebp - 0x158]
push edx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x190]
push edx
mov ecx, eax
call fcn.00413df0
mov byte [ebp - 4], 0x25
push 0x535380
push eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.004139a0
add esp, 0x14
mov byte [ebp - 4], 0x26
push 0x529050
push eax
lea ecx, [ebp - 0x1ac]
push ecx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0x27
push 0
push eax
or eax, 0xffffffff
mov esi, dword [ebp + 0xc]
call fcn.00412830
mov byte [ebp - 4], 0x26
lea esi, [ebp - 0x1ac]
call fcn.004150b0
mov byte [ebp - 4], 0x25
lea esi, [ebp - 0x1c8]
call fcn.004150b0
mov byte [ebp - 4], 0x24
lea esi, [ebp - 0x190]
call fcn.004150b0
mov byte [ebp - 4], 0x23
lea esi, [ebp - 0x158]
call fcn.004150b0
mov byte [ebp - 4], 0x22
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 0x1d
lea esi, [ebp - 0x100]
call fcn.004150b0
mov byte [ebp - 4], 0x1c
lea esi, [ebp - 0xe4]
call fcn.004150b0
mov byte [ebp - 4], 0x1b
lea esi, [ebp - 0x4c]
call fcn.004150b0
mov edi, dword [ebp - 0xb8]
mov esi, dword [ebp - 0x70]
inc esi
mov dword [ebp - 0x70], esi
mov ebx, dword [ebp + 0xc]
jmp 0x4e7993
mov eax, 0x529050
lea ecx, [ebp - 0x4c]
call fcn.0040fae0
mov byte [ebp - 4], 0x28
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x4c]
mov edx, ebx
call fcn.004ef1e0
add esp, 4
mov byte [ebp - 4], 0x29
mov edi, eax
mov esi, ebx
call fcn.00411aa0
mov byte [ebp - 4], 0x28
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 0x1b
lea esi, [ebp - 0x4c]
call fcn.004150b0
mov eax, 0x535380
lea ecx, [ebp - 0x4c]
call fcn.0040fae0
mov byte [ebp - 4], 0x2a
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x4c]
mov edx, ebx
call fcn.004ef1e0
add esp, 4
mov byte [ebp - 4], 0x2b
mov edi, eax
mov esi, ebx
call fcn.00411aa0
mov byte [ebp - 4], 0x2a
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 0x1b
lea esi, [ebp - 0x4c]
call fcn.004150b0
mov byte [ebp - 4], 0x17
lea esi, [ebp - 0xb8]
call fcn.0040fcb0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
jmp 0x4e820e
push edi
push str.SELECT__FROM
lea ecx, [ebp - 0x158]
push ecx
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 0x2c
push str._LIMIT_0_
push eax
lea edx, [ebp - 0x8c]
push edx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0x2d
mov edi, eax
lea esi, [ebp - 0x68]
call fcn.00411aa0
mov byte [ebp - 4], 0x2c
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x158]
call fcn.004150b0
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0x4e7d75
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419990
mov byte [ebp - 4], 0x2e
lea eax, [ebp - 0xa4]
call fcn.0041a070
mov dword [ebp + 8], eax
xor edi, edi
mov dword [ebp - 0xc8], edi
cmp edi, dword [ebp + 8]
jge 0x4e7def
mov esi, edi
lea ecx, [ebp - 0xa4]
call fcn.0041a270
lea ecx, [ebp - 0x30]
call fcn.0040fae0
mov byte [ebp - 4], 0x2f
push 0
lea ecx, [ebp - 0x30]
push ecx
or eax, 0xffffffff
mov esi, ebx
call fcn.00412830
mov edx, dword [ebp + 8]
dec edx
cmp edi, edx
jge 0x4e7de0
push ebx
mov eax, 0x528e5c
call fcn.0040fb70
mov byte [ebp - 4], 0x2e
lea esi, [ebp - 0x30]
call fcn.004150b0
inc edi
jmp 0x4e7d99
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.0041a010
jmp 0x4e8213
mov eax, 0x528928
lea ecx, [ebp - 0x100]
call fcn.0040fae0
mov byte [ebp - 4], 2
mov eax, str.SELECT_name_FROM_sqlite_master_WHERE_typetable_AND_name_LIKE__UT___ORDER_BY_name
lea ecx, [ebp - 0x30]
call fcn.0040fae0
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ec1a0
mov edi, eax
mov byte [ebp - 4], 2
lea esi, [ebp - 0x30]
call fcn.004150b0
test edi, edi
je 0x4e8204
mov eax, 0x529050
lea ecx, [ebp - 0x30]
call fcn.0040fae0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x100]
call fcn.004f07a0
add esp, 8
mov byte [ebp - 4], 6
lea esi, [ebp - 0x30]
call fcn.004150b0
xor esi, esi
mov dword [ebp - 0x6c], esi
mov edi, dword [ebp - 0xb8]
jmp 0x4e7ea0
mov ecx, dword [ebp - 0xb4]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x4e815b
lea ebx, [esi*8]
sub ebx, esi
add ebx, ebx
add ebx, ebx
lea edx, [edi + ebx]
mov ecx, 3
cmp dword [edx + 0x10], ecx
jbe 0x4e814f
mov eax, dword [edx + 0x10]
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0040fbe0
mov byte [ebp - 4], 7
mov eax, 0x52cbb0
lea ecx, [ebp - 0x4c]
call fcn.0040fae0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe4]
call fcn.004f1130
test al, al
je 0x4e7fb9
lea ecx, [ebp - 0xe4]
push ecx
push str.SELECT_Note_FROM_UT_REPORT_WHERE_ReportId
lea edx, [ebp - 0x8c]
push edx
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 9
mov edi, eax
lea esi, [ebp - 0x68]
call fcn.00411aa0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x8c]
call fcn.004150b0
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0x4e7f60
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419990
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xa4]
call fcn.0041a3d0
test al, al
jne 0x4e7faa
xor eax, eax
lea ecx, [ebp - 0xa4]
call fcn.0041a1d0
test al, al
jne 0x4e7faa
xor eax, eax
lea ecx, [ebp - 0xa4]
call fcn.0041a0b0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0040fb70
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa4]
call fcn.0041a010
mov eax, dword [ebp - 0xb8]
add eax, ebx
push eax
push str.pragma_table_info__
lea eax, [ebp - 0x190]
push eax
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 0xb
push 0x549498
push eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0xc
mov edi, eax
lea esi, [ebp - 0x68]
call fcn.00411aa0
mov byte [ebp - 4], 0xb
lea esi, [ebp - 0x158]
call fcn.004150b0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x190]
call fcn.004150b0
mov eax, 0x528928
lea ecx, [ebp - 0x30]
call fcn.0040fae0
mov byte [ebp - 4], 0xd
push 0
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ec1a0
test eax, eax
je 0x4e811f
add ebx, dword [ebp - 0xb8]
lea eax, [ebp - 0x4c]
push eax
push ebx
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00413c30
add esp, 0xc
mov byte [ebp - 4], 0xe
push 0x529050
push eax
lea edx, [ebp - 0x138]
push edx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x174]
push edx
mov ecx, eax
call fcn.00413df0
mov byte [ebp - 4], 0x10
push 0x535380
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.004139a0
add esp, 0x14
mov byte [ebp - 4], 0x11
push 0x529050
push eax
lea ecx, [ebp - 0x1c8]
push ecx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0x12
push 0
push eax
or eax, 0xffffffff
mov esi, dword [ebp + 0xc]
call fcn.00412830
mov byte [ebp - 4], 0x11
lea esi, [ebp - 0x1c8]
call fcn.004150b0
mov byte [ebp - 4], 0x10
lea esi, [ebp - 0x1ac]
call fcn.004150b0
mov byte [ebp - 4], 0xf
lea esi, [ebp - 0x174]
call fcn.004150b0
mov byte [ebp - 4], 0xe
lea esi, [ebp - 0x138]
call fcn.004150b0
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0x11c]
call fcn.004150b0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x30]
call fcn.004150b0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x4c]
call fcn.004150b0
mov byte [ebp - 4], 6
lea esi, [ebp - 0xe4]
call fcn.004150b0
mov edi, dword [ebp - 0xb8]
mov esi, dword [ebp - 0x6c]
inc esi
mov dword [ebp - 0x6c], esi
mov ebx, dword [ebp + 0xc]
jmp 0x4e7ea0
mov eax, 0x529050
lea ecx, [ebp - 0x30]
call fcn.0040fae0
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x30]
mov edx, ebx
call fcn.004ef1e0
add esp, 4
mov byte [ebp - 4], 0x14
mov edi, eax
mov esi, ebx
call fcn.00411aa0
mov byte [ebp - 4], 0x13
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x30]
call fcn.004150b0
mov eax, 0x535380
lea ecx, [ebp - 0x30]
call fcn.0040fae0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x30]
mov edx, ebx
call fcn.004ef1e0
add esp, 4
mov byte [ebp - 4], 0x16
mov edi, eax
mov esi, ebx
call fcn.00411aa0
mov byte [ebp - 4], 0x15
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x30]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xb8]
call fcn.0040fcb0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x100]
call fcn.004150b0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x68]
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 0xc