Function at 0x4c16b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568996
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x22c], eax
mov ecx, 1
mov dword [ebp - 4], ecx
cmp byte [ebx + 8], al
jne 0x4c173c
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [ebp - 0x22c], ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c1735
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x4c1acb
push 0x206
push eax
lea edx, [ebp - 0x216]
xor ecx, ecx
push edx
mov word [ebp - 0x218], cx
call fcn.00544310
mov eax, dword [esi]
xor ecx, ecx
add esp, 0xc
cmp dword [eax - 0xc], ecx
jne 0x4c17d0
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
mov ecx, dword [ebp + 0x18]
lea edi, [ebp + 0xc]
push ecx
jne 0x4c17a0
call fcn.004b3e50
mov edx, dword [ebx + 0x30]
push eax
push edx
push 0xffffffffffffffff
push str.activity
lea eax, [ebp - 0x218]
push str.SELECT__FROM__s_WHERE_lang_IN__d__d__AND_type_IN___s__ORDER_BY_time_DESC__seq_DESC_LIMIT__u__
push eax
mov ecx, 0x104
call fcn.00420800
add esp, 0x1c
jmp 0x4c18b4
push eax
call fcn.004b3e50
mov edx, dword [ebx + 0x30]
push eax
push edx
push 0xffffffffffffffff
push str.activity
lea eax, [ebp - 0x218]
push str.SELECT__FROM__s_WHERE_lang_IN__d__d__AND_type_IN___s__AND_read___d_ORDER_BY_time_DESC__seq_DESC_LIMIT__u__
push eax
mov ecx, 0x104
call fcn.00420800
add esp, 0x20
jmp 0x4c18b4
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x228]
lea esi, [ebp - 0x220]
call fcn.004c0bb0
test al, al
jne 0x4c1813
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [ebp - 0x22c], 1
jmp 0x4c1712
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
lea edi, [ebp + 0xc]
push ecx
test eax, eax
jne 0x4c186b
call fcn.004b3e50
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x21c]
push edx
mov edx, dword [ebp - 0x224]
push 0xffffffffffffffff
push eax
push ecx
push edx
mov edx, dword [ebp - 0x228]
push edx
push eax
push ecx
push str.activity
lea eax, [ebp - 0x218]
push str.SELECT__FROM__s_WHERE___time___I64u_AND_seq____I64u__OR_time____I64u__AND_lang_IN__d__d__AND_type_IN___s__ORDER_BY_time_DESC_seq_DESC_LIMIT__u__
push eax
mov ecx, 0x104
call fcn.00420800
add esp, 0x34
jmp 0x4c18b4
push eax
call fcn.004b3e50
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x21c]
push edx
mov edx, dword [ebp - 0x224]
push 0xffffffffffffffff
push eax
push ecx
push edx
mov edx, dword [ebp - 0x228]
push edx
push eax
push ecx
push str.activity
lea eax, [ebp - 0x218]
push str.SELECT__FROM__s_WHERE___time___I64u_AND_seq____I64u__OR_time____I64u__AND_lang_IN__d__d__AND_type_IN___s__AND_read___d_ORDER_BY_time_DESC_seq_DESC_LIMIT__u__
push eax
mov ecx, 0x104
call fcn.00420800
add esp, 0x38
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], 0
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
call fcn.00423950
sub esp, 8
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x21c], esp
push eax
call fcn.004b79f0
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x224]
call fcn.004cb7a0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c1931
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + 0x14]
mov edi, dword [ecx]
mov ebx, dword [eax]
mov dword [ebp - 0x23c], edi
mov esi, dword [eax + 0x14]
mov ecx, dword [eax]
test ebx, ebx
je 0x4c1951
cmp ebx, ecx
je 0x4c195c
call fcn.0053d6a6
mov eax, dword [ebp - 0x234]
cmp edi, esi
je 0x4c1a43
test ebx, ebx
jne 0x4c1a2d
call fcn.0053d6a6
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c197d
call fcn.0053d6a6
lea esi, [edi + 8]
test ebx, ebx
jne 0x4c1a34
call fcn.0053d6a6
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c1999
call fcn.0053d6a6
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.004c0b20
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 6
test ebx, ebx
jne 0x4c1a3b
call fcn.0053d6a6
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c19cd
call fcn.0053d6a6
add edi, 0x38
mov eax, esi
call fcn.00423c70
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c19fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x4c1a3f
call fcn.0053d6a6
xor eax, eax
mov esi, dword [ebp - 0x23c]
cmp esi, dword [eax + 0x14]
jne 0x4c1a18
call fcn.0053d6a6
mov ecx, dword [esi]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x23c], ecx
mov edi, ecx
jmp 0x4c1944
mov eax, dword [ebx]
jmp 0x4c1973
mov eax, dword [ebx]
jmp 0x4c198f
mov eax, dword [ebx]
jmp 0x4c19c3
mov eax, dword [ebx]
jmp 0x4c1a08
mov edx, dword [ebp - 0x230]
mov esi, dword [ebp - 0x238]
push edx
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c8ea0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x22c], 1
test eax, eax
je 0x4c1aa6
mov edi, eax
add eax, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c1aa6
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c1aa6
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c1ac9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 0x18