Function at 0x57c9a8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61704c
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x6b9a04]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x6b9a04]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
cmp edi, ebx
jne 0x57ca15
push 0x641040
call fcn.0040518c
jmp 0x57d6bd
lea eax, [esp + 0x20]
push eax
mov eax, edi
call fcn.00416fa9
mov dword [esp + 0x178], ebx
push dword [eax]
lea ecx, [esp + 0xc4]
call fcn.0040518c
mov byte [esp + 0x178], 2
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00405172
mov eax, dword [edi + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x80]
mov dword [esp + 0x38], eax
movzx eax, byte [edi + 0x64]
lea ecx, [esp + 0xdc]
mov dword [esp + 0x30], eax
call fcn.004a0e0c
mov byte [esp + 0x178], 3
or dword [esp + 0x20], 0xffffffff
cmp esi, ebx
je 0x57ca8d
mov esi, dword [esp + 0x2c]
call fcn.004a1770
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x88]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x8c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
add eax, 0x58
push eax
lea eax, [esp + 0x118]
push eax
call fcn.00581ad8
lea eax, [esp + 0xc0]
push eax
mov byte [esp + 0x17c], 4
call fcn.00581f6b
cmp dword [esp + 0xdc], 0x10
mov eax, dword [esp + 0xc8]
pop ecx
jae 0x57cae4
lea eax, [esp + 0xc4]
push eax
push str.SELECT__FROM_messages_WHERE__strUid_s
mov ecx, 0x800
lea edx, [esp + 0xac]
call fcn.0054aa9f
pop ecx
pop ecx
mov esi, dword [esp + 0x18]
push ebx
mov byte [esp + 0x17c], 5
call fcn.0057df31
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x641040
call fcn.0040518c
mov ecx, esi
call fcn.00579249
cmp eax, ebx
jne 0x57cb46
push esi
call fcn.0057df8f
mov ecx, dword [esp + 0x14]
push 0x641040
call fcn.0040518c
jmp 0x57d684
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x641040
call fcn.0040518c
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x134]
call fcn.00581ba8
push esi
call fcn.0057df8f
lea eax, [esp + 0x3c]
push eax
call fcn.0040b9c5
lea esi, [esp + 0x14c]
lea eax, [esp + 0x3c]
mov byte [esp + 0x178], 6
call fcn.00412a87
lea eax, [esp + 0x54]
push eax
call fcn.0044c572
lea esi, [esp + 0x134]
lea eax, [esp + 0x54]
mov byte [esp + 0x178], 7
call fcn.00578059
push ebx
lea ecx, [esp + 0xfc]
mov dword [esp + 0x114], 0xf
call fcn.004055a6
mov byte [esp + 0x178], 8
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x57cdf8
push ebx
push dword [ebp + 0x10]
mov ecx, edi
push dword [esp + 0x34]
call fcn.0057be6a
push str.INSERT_INTO_messages___nIdx___strUid___nMsgNum___nMsgSize___nFlags___nFlagsUser___strRgb___nCacheTime
lea ecx, [esp + 0xa8]
mov edi, eax
call fcn.0040556d
cmp dword [esp + 0x20], 0xffffffff
je 0x57cc30
mov esi, str.___nFlagsMsg
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0xac]
call fcn.00403f16
mov esi, str.__VALUES__
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0xac]
call fcn.00403f16
cmp dword [esp + 0xf4], 0x10
mov ecx, dword [esp + 0xe0]
jae 0x57cc62
lea ecx, [esp + 0xe0]
cmp dword [esp + 0xd8], 0x10
mov eax, dword [esp + 0xc4]
jae 0x57cc7a
lea eax, [esp + 0xc4]
push dword [esp + 0x28]
lea edx, [esp + 0x8c]
push dword [esp + 0x28]
push ecx
push dword [esp + 0x3c]
mov ecx, 0x800
push edi
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push eax
push str.NULL___s___d___d___u___u___s___I64d
call fcn.0054aa9f
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x184], 9
call fcn.00403e6f
push ebx
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0x180], 8
call fcn.004055c2
cmp dword [esp + 0x20], 0xffffffff
mov edi, 0x400
je 0x57cd2d
push dword [esp + 0x20]
mov ecx, edi
push str.___d
lea edx, [esp + 0x90]
call fcn.0054aa9f
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x184], 0xa
call fcn.00403e6f
push ebx
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0x180], 8
call fcn.004055c2
mov esi, 0x64164c
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0xac]
call fcn.00403f16
mov esi, dword [esp + 0x18]
push 1
call fcn.0057df31
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x641040
call fcn.0040518c
mov ecx, esi
call fcn.00579249
cmp eax, ebx
jne 0x57cd89
push esi
call fcn.0057df8f
mov ecx, dword [esp + 0x14]
push 0x641040
call fcn.0040518c
jmp 0x57d659
lea eax, [esp + 0xa4]
push eax
lea esi, [esp + 0x118]
call fcn.00581bed
push dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x2c], edx
call fcn.0057df8f
cmp dword [esp + 0x12c], ebx
jne 0x57cd76
mov eax, esi
and eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x57cd76
push dword [esp + 0x28]
mov ecx, edi
push esi
push str._I64u
lea edx, [esp + 0x94]
call fcn.0054aa9f
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x104]
mov byte [esp + 0x184], 0xb
call fcn.0040529a
jmp 0x57d631
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str._nIdx
lea esi, [esp + 0x5c]
call fcn.0040518c
mov ecx, esi
call fcn.0057be07
cmp eax, 0xffffffff
je 0x57cd76
push eax
push ebx
lea esi, [esp + 0x5c]
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x104]
call fcn.0040529a
push ebx
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa4], 0xf
call fcn.004055a6
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x66b198
mov byte [esp + 0x198], 0xc
lea esi, [esp + 0x5c]
call fcn.0040518c
mov ecx, esi
call fcn.0057be07
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
cmp ecx, ebx
jne 0x57cebc
push eax
push ebx
lea esi, [esp + 0x5c]
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x57cea8
mov eax, dword [eax + 4]
jmp 0x57ceab
add eax, 4
push eax
call fcn.005c59d8
pop ecx
cmp eax, dword [esp + 0x34]
je 0x57cf44
cmp dword [esp + 0x9c], ebx
jne 0x57ced8
push str.SET
lea ecx, [esp + 0x8c]
call fcn.0040556d
jmp 0x57cef2
mov esi, 0x6528a8
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
mov esi, str._nMsgNum
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
push dword [esp + 0x34]
lea esi, [esp + 0x70]
call fcn.0054982d
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x184], 0xd
call fcn.00403e6f
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x180], 0xc
call fcn.004055c2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x66b1a4
lea esi, [esp + 0x5c]
call fcn.0040518c
mov ecx, esi
call fcn.0057be07
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
cmp ecx, ebx
jne 0x57cf9f
push eax
push ebx
lea esi, [esp + 0x5c]
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x57cf8b
mov eax, dword [eax + 4]
jmp 0x57cf8e
add eax, 4
push eax
call fcn.005c59d8
pop ecx
cmp eax, dword [esp + 0x38]
je 0x57d027
cmp dword [esp + 0x9c], ebx
jne 0x57cfbb
push str.SET
lea ecx, [esp + 0x8c]
call fcn.0040556d
jmp 0x57cfd5
mov esi, 0x6528a8
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
mov esi, str._nMsgSize
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
push dword [esp + 0x38]
lea esi, [esp + 0x70]
call fcn.0054982d
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x184], 0xe
call fcn.00403e6f
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x180], 0xc
call fcn.004055c2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x66b1b0
lea esi, [esp + 0x5c]
call fcn.0040518c
mov ecx, esi
call fcn.0057be07
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
cmp ecx, ebx
jne 0x57d095
push eax
push ebx
lea esi, [esp + 0x5c]
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x57d06e
mov eax, dword [eax + 4]
jmp 0x57d071
add eax, 4
push eax
call fcn.005c59d8
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov ecx, edi
push dword [esp + 0x34]
call fcn.0057be6a
mov edi, eax
cmp esi, edi
je 0x57d12b
jmp 0x57d0a6
push ebx
push dword [ebp + 0x10]
mov ecx, edi
push dword [esp + 0x34]
call fcn.0057be6a
mov edi, eax
cmp dword [esp + 0x9c], ebx
jne 0x57d0c2
push str.SET
lea ecx, [esp + 0x8c]
call fcn.0040556d
jmp 0x57d0dc
mov esi, 0x6528a8
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
mov esi, str._nFlags
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
push edi
lea esi, [esp + 0x70]
call fcn.0054982d
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x184], 0xf
call fcn.00403e6f
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x180], 0xc
call fcn.004055c2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x66b1b8
lea esi, [esp + 0x5c]
call fcn.0040518c
mov ecx, esi
call fcn.0057be07
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
cmp ecx, ebx
jne 0x57d186
push eax
push ebx
lea esi, [esp + 0x5c]
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x57d172
mov eax, dword [eax + 4]
jmp 0x57d175
add eax, 4
push eax
call fcn.005c59d8
pop ecx
cmp eax, dword [esp + 0x30]
je 0x57d20e
cmp dword [esp + 0x9c], ebx
jne 0x57d1a2
push str.SET
lea ecx, [esp + 0x8c]
call fcn.0040556d
jmp 0x57d1bc
mov esi, 0x6528a8
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
mov esi, str._nFlagsUser
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
push dword [esp + 0x30]
lea esi, [esp + 0x70]
call fcn.0054982d
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x184], 0x10
call fcn.00403e6f
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x180], 0xc
call fcn.004055c2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x66b1c4
lea esi, [esp + 0x5c]
call fcn.0040518c
mov ecx, esi
call fcn.0057be07
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov edi, 0x647d7c
cmp ecx, ebx
jne 0x57d262
push eax
push ebx
lea esi, [esp + 0x5c]
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
lea ecx, [esp + 0xdc]
push ecx
mov ecx, eax
call fcn.00404b75
test eax, eax
je 0x57d2d2
cmp dword [esp + 0x9c], ebx
jne 0x57d27e
push str.SET
lea ecx, [esp + 0x8c]
call fcn.0040556d
jmp 0x57d298
mov esi, 0x6528a8
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
mov esi, str._strRgb
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xe4]
push eax
mov ecx, esi
call fcn.00403e6f
push edi
call fcn.005c3140
pop ecx
push eax
push edi
call fcn.00403f16
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x66b1e8
lea esi, [esp + 0x5c]
call fcn.0040518c
mov ecx, esi
call fcn.0057be07
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
cmp ecx, ebx
jne 0x57d333
push eax
push ebx
lea esi, [esp + 0x5c]
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x57d319
mov eax, dword [eax + 4]
jmp 0x57d31c
add eax, 4
push eax
call fcn.005c59e3
pop ecx
cmp eax, dword [esp + 0x24]
jne 0x57d333
cmp edx, dword [esp + 0x28]
je 0x57d3d5
cmp dword [esp + 0x9c], ebx
jne 0x57d34f
push str.SET
lea ecx, [esp + 0x8c]
call fcn.0040556d
jmp 0x57d369
mov esi, 0x6528a8
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
mov esi, str._nCacheTime
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
push dword [esp + 0x28]
lea esi, [esp + 0x70]
push dword [esp + 0x28]
call fcn.0054986d
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x184], 0x11
call fcn.00403e6f
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x180], 0xc
call fcn.004055c2
push edi
call fcn.005c3140
pop ecx
push eax
push edi
lea esi, [esp + 0x90]
call fcn.00403f16
cmp dword [esp + 0x20], 0xffffffff
je 0x57d4c3
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x66b204
lea esi, [esp + 0x5c]
call fcn.0040518c
mov ecx, esi
call fcn.0057be07
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
cmp ecx, ebx
jne 0x57d43b
push eax
push ebx
lea esi, [esp + 0x5c]
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x57d427
mov eax, dword [eax + 4]
jmp 0x57d42a
add eax, 4
push eax
call fcn.005c59d8
pop ecx
cmp eax, dword [esp + 0x20]
je 0x57d4c3
cmp dword [esp + 0x9c], ebx
jne 0x57d457
push str.SET
lea ecx, [esp + 0x8c]
call fcn.0040556d
jmp 0x57d471
mov esi, 0x6528a8
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
mov esi, str._nFlagsMsg
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0x90]
call fcn.00403f16
push dword [esp + 0x20]
lea esi, [esp + 0x70]
call fcn.0054982d
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x184], 0x12
call fcn.00403e6f
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x180], 0xc
call fcn.004055c2
cmp dword [esp + 0x9c], ebx
je 0x57d631
push str.UPDATE_messages
lea ecx, [esp + 0xa8]
call fcn.0040556d
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0xb0]
call fcn.00403e6f
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x70]
push str._WHERE__nIdx
push eax
call fcn.004049b4
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x184], 0x13
call fcn.00403e6f
push ebx
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x180], 0xc
call fcn.004055c2
mov esi, dword [esp + 0x18]
push 1
call fcn.0057df31
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x641040
call fcn.0040518c
mov ecx, esi
call fcn.00579249
cmp eax, ebx
jne 0x57d58f
push esi
call fcn.0057df8f
mov ecx, dword [esp + 0x14]
push 0x641040
call fcn.0040518c
push ebx
push 1
lea ecx, [esp + 0x90]
call fcn.004055c2
jmp 0x57d659
lea eax, [esp + 0xa4]
push eax
lea ebx, [esp + 0x118]
call fcn.00581b3f
push esi
call fcn.0057df8f
cmp dword [esp + 0x12c], 0
je 0x57d62f
mov ecx, dword [esp + 0x14]
push 0x641040
call fcn.0040518c
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [esp + 0x90]
call fcn.004055c2
push edi
push ebx
lea ecx, [esp + 0x100]
call fcn.004055c2
lea esi, [esp + 0x54]
call fcn.0057802c
lea esi, [esp + 0x3c]
call fcn.0040bc29
push dword [esp + 0x3c]
call fcn.0059a1ad
pop ecx
push edi
push ebx
lea ecx, [esp + 0xac]
call fcn.004055c2
lea edi, [esp + 0x114]
call fcn.00581b18
push 0
push ebx
lea ecx, [esp + 0xe4]
call fcn.004055c2
push 0
push ebx
jmp 0x57d6b1
xor ebx, ebx
push ebx
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0x180], 8
call fcn.004055c2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xf8]
push eax
call fcn.004051ae
push ebx
push 1
lea ecx, [esp + 0x100]
call fcn.004055c2
lea esi, [esp + 0x54]
call fcn.0057802c
lea esi, [esp + 0x3c]
call fcn.0040bc29
push dword [esp + 0x3c]
call fcn.0059a1ad
pop ecx
push ebx
push 1
lea ecx, [esp + 0xac]
call fcn.004055c2
lea edi, [esp + 0x114]
call fcn.00581b18
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.004055c2
push ebx
push 1
lea ecx, [esp + 0xc8]
call fcn.004055c2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.005c30b2
mov esp, ebp
pop ebp
ret 0xc