Function at 0x4c2990
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a299
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
xor edx, edx
mov dword [ebp - 0x18], edx
cmp byte [ecx + 8], dl
jne 0x4c29e1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x5ce94c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5ce94c
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx + 0xc]
cmp esi, dword [ebx + 0x10]
jbe 0x4c2a0d
call fcn.0053ecd6
mov edi, dword [ebx]
mov dword [ebp - 0x20], esi
mov esi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], esi
jbe 0x4c2a1f
call fcn.0053ecd6
mov eax, dword [ebx]
test edi, edi
je 0x4c2a29
cmp edi, eax
je 0x4c2a2e
call fcn.0053ecd6
cmp dword [ebp - 0x20], esi
je 0x4c2ad8
test edi, edi
jne 0x4c2a7b
call fcn.0053ecd6
xor eax, eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x4c2a4f
call fcn.0053ecd6
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x2c]
lea esi, [ebp - 0x3c]
call fcn.004c25b0
test al, al
jne 0x4c2a83
test edi, edi
jne 0x4c2a7f
call fcn.0053ecd6
xor eax, eax
mov edx, dword [ebp - 0x20]
cmp edx, dword [eax + 0x10]
jb 0x4c2ab3
call fcn.0053ecd6
jmp 0x4c2ab3
mov eax, dword [edi]
jmp 0x4c2a42
mov eax, dword [edi]
jmp 0x4c2a6c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
lea esi, [ebp - 0x10]
jne 0x4c2a9e
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
push ecx
push edx
push str._I64u
jmp 0x4c2aab
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
push str.__I64u
call fcn.004230e0
add esp, 0xc
test edi, edi
jne 0x4c2ad4
call fcn.0053ecd6
xor eax, eax
mov edx, dword [ebp - 0x20]
cmp edx, dword [eax + 0x10]
jb 0x4c2acb
call fcn.0053ecd6
add dword [ebp - 0x20], 4
jmp 0x4c2a12
mov eax, dword [edi]
jmp 0x4c2abe
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
jne 0x4c2b04
mov esi, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
lea eax, [edi - 0x10]
jmp 0x4c2d8e
mov edx, dword [0x5ce94c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5ce94c
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4c2b3d
push edi
push str.activity
push str.SELECT__FROM__s_WHERE_seq_IN__s__ORDER_BY_time_DESC__seq_DESC_
lea edi, [ebp + 0xc]
call fcn.00424dc0
add esp, 0xc
jmp 0x4c2b54
push eax
push edi
push str.activity
push str.SELECT__FROM__s_WHERE_seq_IN__s__AND_read___d_ORDER_BY_time_DESC__seq_DESC_
lea edi, [ebp + 0xc]
call fcn.00424dc0
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00425130
sub esp, 8
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x20], esp
push ecx
call fcn.004b93d0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004cd1f0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2bb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x14]
mov edi, dword [ecx]
mov ebx, dword [eax]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
lea esp, [esp]
mov esi, dword [eax + 0x14]
mov ecx, dword [eax]
test ebx, ebx
je 0x4c2bdd
cmp ebx, ecx
je 0x4c2be5
call fcn.0053ecd6
mov eax, dword [ebp - 0x34]
cmp edi, esi
je 0x4c2d0a
test ebx, ebx
jne 0x4c2c9c
call fcn.0053ecd6
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c2c06
call fcn.0053ecd6
lea esi, [edi + 8]
test ebx, ebx
jne 0x4c2ca3
call fcn.0053ecd6
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c2c22
call fcn.0053ecd6
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.004c2520
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 7
test ebx, ebx
jne 0x4c2caa
call fcn.0053ecd6
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c2c53
call fcn.0053ecd6
mov ecx, dword [esi]
mov esi, dword [edi + 0x38]
add edi, 0x38
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4c2cbc
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4c2cae
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4c2cae
call fcn.004254c0
mov dword [ebp - 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4c2c92
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x4c2cb9
mov eax, dword [ebx]
jmp 0x4c2bfc
mov eax, dword [ebx]
jmp 0x4c2c18
mov eax, dword [ebx]
jmp 0x4c2c49
mov eax, dword [ecx - 0xc]
push eax
push ecx
push edi
call fcn.004253c0
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c2cdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x4c2d06
call fcn.0053ecd6
xor eax, eax
mov esi, dword [ebp - 0x28]
cmp esi, dword [eax + 0x14]
jne 0x4c2cf7
call fcn.0053ecd6
mov ecx, dword [esi]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov edi, ecx
jmp 0x4c2bd0
mov eax, dword [ebx]
jmp 0x4c2cea
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
push edx
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ca8a0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 1
test eax, eax
je 0x4c2d61
mov edi, eax
add eax, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c2d61
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 0x4c2d61
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2d84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2da7
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 esp, ebp
pop ebp
ret 0xc