Function at 0x5b4c220
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 0x10], 0
mov eax, str._rowid___
mov dword [ebp - 0x18], ecx
mov ecx, 0x5c399b8
cmove eax, ecx
mov dword [ebp - 0x14], edx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], eax
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov esi, 0x5c37db0
mov dword [ebp - 0x3c], 0
xor edi, edi
mov dword [ebp - 8], esi
push eax
mov edx, 0x5c409dc
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.05b4cf80
mov eax, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x5b4c2f4
mov edx, eax
mov ecx, str.sqlite_stat1
call fcn.05c1c500
test eax, eax
jne 0x5b4c2f4
lea eax, [ebp - 4]
mov edx, str._AND___6_OR__3_IS_stat_
push eax
lea ecx, [ebp - 0x3c]
call fcn.05b4cf80
add esp, 4
lea eax, [ebp - 4]
mov edx, str.tbl__idx
lea ecx, [ebp - 0x24]
push eax
call fcn.05b4cf80
add esp, 4
lea eax, [ebp - 4]
mov edx, str._1___CASE_WHEN__2X_THEN_NULL_ELSE__2_END_
lea ecx, [ebp - 0x30]
push eax
call fcn.05b4cf80
mov ebx, dword [ebp - 0x24]
add esp, 4
mov edi, dword [ebp - 0x30]
mov edx, str.tbl___2__stat
jmp 0x5b4c460
mov edx, dword [ebp + 0x14]
test edx, edx
jle 0x5b4c45d
mov eax, dword [ebp + 0x1c]
mov ecx, 1
dec eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
nop
cmp byte [eax + ecx], 0
je 0x5b4c41f
test esi, esi
jne 0x5b4c322
xor ebx, ebx
jmp 0x5b4c336
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5b4c327
sub ebx, ecx
and ebx, 0x3fffffff
mov eax, dword [ebp - 0x20]
lea ecx, [ebx + 1]
xor edi, edi
cdq
add ecx, eax
adc edi, edx
cmp dword [ebp - 4], 0
jne 0x5b4c37d
push edi
push ecx
lea edx, [ebp - 4]
lea ecx, [ebp - 0x24]
call fcn.05b4d120
add esp, 8
test eax, eax
jne 0x5b4c37d
mov edi, dword [ebp - 0x20]
push ebx
push esi
mov esi, dword [ebp - 0x24]
lea eax, [edi + esi]
push eax
call fcn.05b15590
add esp, 0xc
add edi, ebx
mov dword [ebp - 0x20], edi
mov byte [edi + esi], 0
mov esi, dword [ebp - 8]
test esi, esi
jne 0x5b4c385
xor ebx, ebx
jmp 0x5b4c39f
mov ebx, esi
lea ecx, [ebx + 1]
nop word [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5b4c390
sub ebx, ecx
and ebx, 0x3fffffff
mov eax, dword [ebp - 0x2c]
lea ecx, [ebx + 1]
xor edi, edi
cdq
add ecx, eax
adc edi, edx
cmp dword [ebp - 4], 0
jne 0x5b4c3e3
push edi
push ecx
lea edx, [ebp - 4]
lea ecx, [ebp - 0x30]
call fcn.05b4d120
add esp, 8
test eax, eax
jne 0x5b4c3e3
mov edi, dword [ebp - 0x2c]
push ebx
push esi
mov esi, dword [ebp - 0x30]
lea eax, [edi + esi]
push eax
call fcn.05b15590
add esp, 0xc
add edi, ebx
mov dword [ebp - 0x2c], edi
mov byte [edi + esi], 0
lea eax, [ebp - 4]
mov esi, 0x5c3bb5c
push eax
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x24]
mov dword [ebp - 8], esi
mov edx, dword [eax]
call fcn.05b4ce40
add esp, 4
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push 0x5c40a44
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.05b4ced0
mov ebx, dword [ebp - 0x24]
add esp, 0x10
mov edi, dword [ebp - 0x30]
jmp 0x5b4c441
mov eax, dword [ebp + 0x18]
push dword [eax]
lea eax, [ecx + edx]
push dword [ebp + 0xc]
push ecx
push eax
push str._AND____d_OR___d_IS__w._w_
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.05b4ced0
add esp, 0x1c
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0x18], 4
inc ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x10], ecx
lea eax, [ecx - 1]
cmp eax, edx
mov eax, dword [ebp - 0x10]
jl 0x5b4c310
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
test esi, esi
jne 0x5b4c515
cmp dword [ebp - 0x14], esi
mov eax, 0x5c37db0
push edi
cmovne eax, dword [ebp - 0x3c]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push edx
push str.SELECT__s_s_FROM__Q._Q_WHERE___s__IS___s_
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
add esp, 0x1c
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x5b4c49a
lea esi, [eax + 7]
jmp 0x5b4c515
mov ecx, dword [ebp - 0x18]
mov edx, eax
push 0
push dword [ebp + 0x20]
push 0
push 0x80
push 0xffffffffffffffff
call fcn.05bb1a30
add esp, 0x14
mov esi, eax
cmp dword [0x5c525e8], 0
je 0x5b4c509
mov eax, dword [0x5c545d8]
test eax, eax
je 0x5b4c4d3
push eax
call dword [0x5c52638]
add esp, 4
push dword [ebp + 0x10]
call dword [0x5c52614]
sub dword [0x5c54628], eax
add esp, 4
dec dword [0x5c5464c]
push dword [ebp + 0x10]
call dword [0x5c5260c]
mov eax, dword [0x5c545d8]
add esp, 4
test eax, eax
je 0x5b4c51a
push eax
call dword [0x5c52640]
jmp 0x5b4c512
push dword [ebp + 0x10]
call dword [0x5c5260c]
add esp, 4
mov eax, dword [0x5c545d8]
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x5b4c57f
cmp dword [0x5c525e8], 0
je 0x5b4c570
test eax, eax
je 0x5b4c53b
push eax
call dword [0x5c52638]
mov ecx, dword [ebp - 0x3c]
add esp, 4
push ecx
call dword [0x5c52614]
mov ecx, dword [ebp - 0x3c]
add esp, 4
sub dword [0x5c54628], eax
dec dword [0x5c5464c]
push ecx
call dword [0x5c5260c]
mov eax, dword [0x5c545d8]
add esp, 4
test eax, eax
je 0x5b4c57f
push eax
call dword [0x5c52640]
jmp 0x5b4c577
push ecx
call dword [0x5c5260c]
mov eax, dword [0x5c545d8]
add esp, 4
test ebx, ebx
je 0x5b4c5db
cmp dword [0x5c525e8], 0
je 0x5b4c5cc
test eax, eax
je 0x5b4c59a
push eax
call dword [0x5c52638]
add esp, 4
push ebx
call dword [0x5c52614]
sub dword [0x5c54628], eax
add esp, 4
dec dword [0x5c5464c]
push ebx
call dword [0x5c5260c]
mov eax, dword [0x5c545d8]
add esp, 4
test eax, eax
je 0x5b4c5db
push eax
call dword [0x5c52640]
jmp 0x5b4c5d3
push ebx
call dword [0x5c5260c]
mov eax, dword [0x5c545d8]
add esp, 4
test edi, edi
je 0x5b4c63c
cmp dword [0x5c525e8], 0
je 0x5b4c632
test eax, eax
je 0x5b4c5f6
push eax
call dword [0x5c52638]
add esp, 4
push edi
call dword [0x5c52614]
sub dword [0x5c54628], eax
add esp, 4
dec dword [0x5c5464c]
push edi
call dword [0x5c5260c]
mov eax, dword [0x5c545d8]
add esp, 4
test eax, eax
je 0x5b4c63c
push eax
call dword [0x5c52640]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x5c5260c]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret