Function at 0x47f750
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567768
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov eax, dword [0x5c40dc]
mov dword [ebp - 0x20], 0
test al, 1
jne 0x47f82d
or eax, 1
mov dword [0x5c40dc], eax
mov dword [ebp - 4], 1
push 0x56c3e0
mov dword [0x5c40e0], 0
mov dword [0x5c40e4], 0
mov dword [0x5c40e8], 0x11
mov dword [0x5c4100], 0
mov dword [0x5c4104], 0xa
mov dword [0x5c4108], 0
mov dword [0x5c410c], 0
mov dword [0x5c40ec], 0x3f400000
mov dword [0x5c40f0], 0x3e800000
mov dword [0x5c40f4], 0x40100000
mov dword [0x5c40f8], 0x26
mov dword [0x5c40fc], 0
call fcn.00529798
add esp, 4
mov byte [ebp - 4], 0
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.004810b0
cmp dword [eax + 4], 0
jne 0x47fc28
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47f85c
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x1c]
push ebx
push str.SELECT_participants__topic_FROM_Chats_WHERE_conv_dbid___d
push eax
call fcn.00481f90
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi - 0xc]
cmp ecx, dword [edi + 0x18]
jb 0x47f89a
push 0x80070057
call fcn.004027b0
push 0
shl ecx, 4
lea edx, [ebp - 0x18]
add ecx, dword [edi + 0x14]
inc eax
push edx
push 0
push 1
mov ecx, dword [ecx + 8]
mov edx, esi
push eax
call fcn.004d01b0
mov edi, dword [ebp - 0x18]
add esp, 0x14
push edi
call fcn.004a7be0
add esp, 4
cmp eax, 0x64
jne 0x47fbfe
lea ecx, [ebp - 0x14]
call fcn.00402b10
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.00402b10
mov byte [ebp - 4], 5
test edi, edi
je 0x47f93b
cmp dword [edi + 0x14], 0
je 0x47f916
mov eax, 1
cmp ax, word [edi + 0x2c]
jae 0x47f916
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x47f90e
push eax
call dword [0x5b5bd4]
add esp, 4
mov ecx, dword [edi + 0x14]
add ecx, 0x28
jmp 0x47f940
mov eax, dword [edi]
test eax, eax
je 0x47f93b
mov eax, dword [eax + 0xc]
test eax, eax
je 0x47f92d
push eax
call dword [0x5b5bd4]
add esp, 4
push 0
push 0x19
push dword [edi]
call fcn.0048a8a0
add esp, 0xc
mov ecx, 0x588950
mov dl, 2
call fcn.004a3740
mov ecx, edi
mov dword [ebp + 0x10], eax
call fcn.004a8150
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x47f95c
xor ecx, ecx
jmp 0x47f974
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f964
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.00402600
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x47fa37
push eax
push ebx
call fcn.004810b0
mov ecx, eax
call fcn.00481f00
push edi
call fcn.004a70a0
mov ecx, dword [ebp + 0xc]
add esp, 4
lea ecx, [ecx - 0x10]
call fcn.004022c0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47f9e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47fa03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x47fa21
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
je 0x47fa86
cmp dword [edi + 0x14], 0
je 0x47fa61
xor eax, eax
cmp ax, word [edi + 0x2c]
jae 0x47fa61
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x47fa5c
push eax
call dword [0x5b5bd4]
add esp, 4
mov ecx, dword [edi + 0x14]
jmp 0x47fa8b
mov eax, dword [edi]
test eax, eax
je 0x47fa86
mov eax, dword [eax + 0xc]
test eax, eax
je 0x47fa78
push eax
call dword [0x5b5bd4]
add esp, 4
push 0
push 0x19
push dword [edi]
call fcn.0048a8a0
add esp, 0xc
mov ecx, 0x588950
mov dl, 2
call fcn.004a3740
mov ecx, dword [ebp - 0x18]
mov edi, eax
call fcn.004a8150
push edi
lea ecx, [ebp + 0xc]
call fcn.00402700
lea eax, [ebp - 0x20]
push eax
push 0x58dabc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xc]
call fcn.00480bb0
mov byte [ebp - 4], 0xa
or dword [ebp - 0x10], 2
mov edx, dword [eax]
mov eax, dword [ebp - 0x14]
lea ecx, [edx - 0x10]
lea edi, [eax - 0x10]
cmp ecx, edi
je 0x47fb16
cmp dword [edi + 0xc], 0
jl 0x47fb07
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x47fb07
call fcn.004022c0
mov dword [ebp + 0x10], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47faff
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x47fb16
push dword [edx - 0xc]
lea ecx, [ebp - 0x14]
push edx
call fcn.00402600
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47fb24
cmp dword [ebp - 0x20], 0xffffffff
mov byte [ebp + 0x13], 1
jne 0x47fb28
mov byte [ebp + 0x13], 0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x10]
test al, 2
je 0x47fb5d
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
or ecx, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47fb5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x13], 0
je 0x47fbb9
mov edi, dword [ebp - 0x14]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00481590
test eax, eax
jne 0x47fba1
cmp dword [0x5c40e0], eax
jne 0x47fb95
push 1
push dword [0x5c40e8]
call fcn.00481600
test al, al
je 0x47fbaf
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ebx
call fcn.00481900
push edi
lea ecx, [eax + 4]
call fcn.00481f00
jmp 0x47faa5
push 0x8007000e
call fcn.004027b0
mov byte [ebp - 4], 4
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47fbda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47fbfb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x18]
push edi
call fcn.004a70a0
add esp, 4
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47fc28
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47fc44
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 0x10
mov edi, dword [0x5c40e0]
mov dword [ebp + 0x10], 0
mov ecx, dword [0x5c40e8]
xor edx, edx
mov eax, ebx
div ecx
mov eax, edx
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x47fc93
mov eax, dword [edi + eax*4]
test eax, eax
je 0x47fca3
cmp dword [eax + 0x18], ebx
jne 0x47fc8a
cmp dword [eax], ebx
je 0x47fcb9
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x47fc81
jmp 0x47fca3
push 1
push ecx
call fcn.00481600
test al, al
je 0x47fbaf
push ebx
push dword [ebp - 0x2c]
push ebx
call fcn.00481900
mov edi, dword [0x5c40e0]
mov ecx, dword [0x5c40e8]
mov edx, dword [ebp + 0x10]
cmp edx, dword [eax + 8]
jae 0x47fe00
xor edx, edx
mov eax, ebx
div ecx
mov eax, edx
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x47fcf2
mov eax, dword [edi + eax*4]
test eax, eax
je 0x47fd02
jmp 0x47fce0
cmp dword [eax + 0x18], ebx
jne 0x47fce9
cmp dword [eax], ebx
je 0x47fd12
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x47fce0
jmp 0x47fd02
push 1
push ecx
call fcn.00481600
test al, al
je 0x47fbaf
push ebx
push dword [ebp - 0x2c]
push ebx
call fcn.00481900
mov edi, dword [0x5c40e0]
mov edx, dword [ebp + 0x10]
cmp edx, dword [eax + 8]
jae 0x47f890
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
test ecx, ecx
je 0x47f852
mov eax, dword [eax + 4]
shl edx, 2
mov eax, dword [edx + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47fd5a
test dx, dx
je 0x47fd56
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47fd5a
add eax, 4
add ecx, 4
test dx, dx
jne 0x47fd34
xor eax, eax
jmp 0x47fd5f
sbb eax, eax
or eax, 1
test eax, eax
je 0x47fdf8
cmp dword [esi - 0xc], 0
je 0x47fd82
push 2
push 0x58dac0
lea ecx, [ebp + 0xc]
call fcn.00443ec0
mov edi, dword [0x5c40e0]
mov ecx, dword [0x5c40e8]
xor edx, edx
mov eax, ebx
div ecx
mov esi, edx
test edi, edi
je 0x47fdb2
mov eax, dword [edi + esi*4]
test eax, eax
je 0x47fdc2
jmp 0x47fda0
cmp dword [eax + 0x18], ebx
jne 0x47fda9
cmp dword [eax], ebx
je 0x47fdca
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x47fda0
jmp 0x47fdc2
push 1
push ecx
call fcn.00481600
test al, al
je 0x47fbaf
push ebx
push esi
push ebx
call fcn.00481900
mov edx, dword [ebp + 0x10]
cmp edx, dword [eax + 8]
jae 0x47f890
mov eax, dword [eax + 4]
lea ecx, [edx*4]
mov eax, dword [eax + ecx]
lea ecx, [ebp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.00443ec0
mov esi, dword [ebp + 0xc]
mov edi, dword [0x5c40e0]
inc dword [ebp + 0x10]
jmp 0x47fc65
mov ecx, 0x581a44
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47fe2d
test dx, dx
je 0x47fe29
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47fe2d
add eax, 4
add ecx, 4
test dx, dx
jne 0x47fe07
xor eax, eax
jmp 0x47fe32
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x47fe6a
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x58dac8
call fcn.004031c0
or dword [ebp - 0x10], 1
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x47fa17
mov ecx, dword [esi - 0x10]
add esi, 0xfffffff0
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x47fe92
cmp ecx, dword [esi]
jne 0x47fe92
mov edi, esi
mov ecx, 1
lock xadd dword [eax], ecx
inc ecx
jmp 0x47fecf
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x47fea6
call fcn.00402540
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.005297ad
add esp, 0x10
lea eax, [edi + 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov byte [ebp - 4], 0x10
or dword [ebp - 0x10], 1
mov dword [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x47fa17