Function at 0x48b75e
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x3c]
lea ebx, [ebp - 0x40]
sub esp, 0x7c
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edx
mov eax, 0x4f27d7
mov edx, str._rowid___
mov dword [ebp - 0x5c], ecx
mov ecx, ebx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
cmovne eax, edx
mov edx, 0x4f7d5d
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x50], eax
mov eax, edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00441eaf
mov eax, dword [ebp + 8]
mov dword [esp], 0x4f3156
mov dword [esp + 4], eax
call fcn.004019f3
test eax, eax
je 0x48b809
mov esi, 1
mov dword [ebp - 0x4c], 0x4f222e
mov dword [ebp - 0x60], edi
jmp 0x48b898
mov ecx, ebx
mov edx, str._AND___6_OR__3_IS_stat_
mov eax, edi
call fcn.00441eaf
lea eax, [ebp - 0x30]
mov ecx, ebx
mov edx, str.tbl__idx
call fcn.00441eaf
lea eax, [ebp - 0x24]
mov ecx, ebx
mov edx, str._1___CASE_WHEN__2X_THEN_NULL_ELSE__2_END_
call fcn.00441eaf
mov dword [ebp - 0x50], str.tbl___2__stat
jmp 0x48b8da
mov eax, dword [ebp + 0x18]
cmp byte [eax + esi - 1], 0
je 0x48b8a2
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
mov ecx, ebx
lea edi, [ebp - 0x24]
call fcn.00441eaf
mov edx, dword [ebp - 0x4c]
mov ecx, ebx
mov eax, edi
call fcn.00441eaf
mov eax, dword [ebp + 0x14]
mov ecx, ebx
mov edx, dword [eax + esi*4 - 4]
lea eax, [ebp - 0x30]
call fcn.00441f40
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4f7daf
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0044409d
mov dword [ebp - 0x4c], 0x4f28ef
inc esi
lea eax, [esi - 1]
cmp eax, dword [ebp + 0x10]
jl 0x48b841
jmp 0x48b8da
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + esi*4 - 4]
mov dword [esp + 0x10], esi
mov dword [esp + 8], str._AND____d_OR___d_IS__w._w_
mov dword [esp + 4], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
add eax, esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.0044409d
jmp 0x48b897
xor ebx, ebx
cmp dword [ebp - 0x40], 0
jne 0x48b92f
cmp dword [ebp - 0x58], 0
mov eax, 0x4f222e
mov edx, dword [ebp - 0x24]
cmovne eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x5c]
mov dword [esp], str.SELECT__s_s_FROM__Q._Q_WHERE___s__IS___s_
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
call fcn.004440e8
test eax, eax
mov ebx, eax
jne 0x48b92f
mov dword [ebp - 0x40], 7
cmp dword [ebp - 0x40], 0
jne 0x48b95e
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call fcn.0048b371
mov dword [ebp - 0x40], eax
mov dword [esp], ebx
call fcn.0040b268
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.0040b268
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.0040b268
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.0040b268
mov eax, dword [ebp - 0x40]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret