Function at 0x57c6ef
Capabilities:
Reference sql statements

Disassembly:
push 0xc8
mov eax, 0x6170be
call fcn.005cb937
mov esi, ecx
mov dword [ebp - 0x9c], esi
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 0x98]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00581ad8
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.00581f6b
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
pop ecx
jae 0x57c735
lea eax, [ebp + 0xc]
push eax
push str.SELECT__nIdx_FROM_messages_WHERE__strUid_s
mov ecx, 0x800
lea edx, [ebp - 0x2c]
call fcn.0054aa9f
pop ecx
pop ecx
push ebx
mov byte [ebp - 4], 2
call fcn.0057df31
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa0], esp
mov edi, 0x641040
push edi
call fcn.0040518c
mov esi, dword [ebp - 0x9c]
mov ecx, esi
call fcn.00579249
cmp eax, ebx
jne 0x57c7ac
push esi
call fcn.0057df8f
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004055c2
lea edi, [ebp - 0x98]
call fcn.00581b18
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004055c2
xor eax, eax
call fcn.005cb9ba
ret 0x1c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa0], esp
push edi
call fcn.0040518c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x98]
call fcn.00581b63
push esi
call fcn.0057df8f
push esi
call fcn.0057bfdf
lea eax, [ebp - 0xb8]
push eax
call fcn.0044c572
lea esi, [ebp - 0x78]
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.00578059
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0xac]
push 0x18
cdq
pop ecx
idiv ecx
lea esi, [ebp - 0xb8]
test eax, eax
jne 0x57c81c
call fcn.0057802c
jmp 0x57c781
push ebx
push ebx
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
push eax
lea ecx, [ebp - 0x48]
call fcn.004051ae
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xd4]
push str.DELETE_FROM_messages_WHERE__nIdx
push eax
mov byte [ebp - 4], 4
call fcn.004049b4
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040529a
push ebx
push 1
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 4
call fcn.004055c2
mov esi, dword [ebp - 0x9c]
push 1
call fcn.0057df31
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa0], esp
push edi
call fcn.0040518c
mov ecx, esi
call fcn.00579249
cmp eax, ebx
jne 0x57c8b6
push esi
call fcn.0057df8f
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004055c2
lea esi, [ebp - 0xb8]
jmp 0x57c812
lea eax, [ebp - 0x2c]
push eax
lea ebx, [ebp - 0x98]
call fcn.00581b3f
push esi
call fcn.0057df8f
xor ebx, ebx
cmp dword [ebp - 0x80], ebx
jne 0x57c8a0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xd4]
push str.DELETE_FROM_msgSource_WHERE__nIdxLink
push eax
call fcn.004049b4
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.0040529a
push ebx
push 1
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 4
call fcn.004055c2
push 1
call fcn.0057df31
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa0], esp
push edi
call fcn.0040518c
mov ecx, esi
call fcn.00579249
cmp eax, ebx
je 0x57c89a
lea eax, [ebp - 0x2c]
push eax
lea ebx, [ebp - 0x98]
call fcn.00581b3f
push dword [ebp - 0x9c]
call fcn.0057df8f
xor ebx, ebx
cmp dword [ebp - 0x80], ebx
je 0x57c99c
mov dword [ebp - 0x9c], ebx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004055c2
lea esi, [ebp - 0xb8]
call fcn.0057802c
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004055c2
lea edi, [ebp - 0x98]
call fcn.00581b18
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004055c2
mov eax, dword [ebp - 0x9c]
jmp 0x57c7a4
mov dword [ebp - 0x9c], 1
jmp 0x57c95a