Function at 0x4c0f90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568a89
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
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 0x4c0fe1
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 [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
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 0x4c100d
call fcn.0053d6a6
mov edi, dword [ebx]
mov dword [ebp - 0x20], esi
mov esi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], esi
jbe 0x4c101f
call fcn.0053d6a6
mov eax, dword [ebx]
test edi, edi
je 0x4c1029
cmp edi, eax
je 0x4c102e
call fcn.0053d6a6
cmp dword [ebp - 0x20], esi
je 0x4c10d8
test edi, edi
jne 0x4c107b
call fcn.0053d6a6
xor eax, eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x4c104f
call fcn.0053d6a6
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x2c]
lea esi, [ebp - 0x3c]
call fcn.004c0bb0
test al, al
jne 0x4c1083
test edi, edi
jne 0x4c107f
call fcn.0053d6a6
xor eax, eax
mov edx, dword [ebp - 0x20]
cmp edx, dword [eax + 0x10]
jb 0x4c10b3
call fcn.0053d6a6
jmp 0x4c10b3
mov eax, dword [edi]
jmp 0x4c1042
mov eax, dword [edi]
jmp 0x4c106c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
lea esi, [ebp - 0x10]
jne 0x4c109e
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
push ecx
push edx
push str._I64u
jmp 0x4c10ab
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
push str.__I64u
call fcn.00421940
add esp, 0xc
test edi, edi
jne 0x4c10d4
call fcn.0053d6a6
xor eax, eax
mov edx, dword [ebp - 0x20]
cmp edx, dword [eax + 0x10]
jb 0x4c10cb
call fcn.0053d6a6
add dword [ebp - 0x20], 4
jmp 0x4c1012
mov eax, dword [edi]
jmp 0x4c10be
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
jne 0x4c1104
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 0x4c138e
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4c113d
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.004235e0
add esp, 0xc
jmp 0x4c1154
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.004235e0
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.00423950
sub esp, 8
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x20], esp
push ecx
call fcn.004b79f0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004cb7a0
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 0x4c11b9
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 0x4c11dd
cmp ebx, ecx
je 0x4c11e5
call fcn.0053d6a6
mov eax, dword [ebp - 0x34]
cmp edi, esi
je 0x4c130a
test ebx, ebx
jne 0x4c129c
call fcn.0053d6a6
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c1206
call fcn.0053d6a6
lea esi, [edi + 8]
test ebx, ebx
jne 0x4c12a3
call fcn.0053d6a6
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c1222
call fcn.0053d6a6
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.004c0b20
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 7
test ebx, ebx
jne 0x4c12aa
call fcn.0053d6a6
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c1253
call fcn.0053d6a6
mov ecx, dword [esi]
mov esi, dword [edi + 0x38]
add edi, 0x38
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4c12bc
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4c12ae
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4c12ae
call fcn.00423cf0
mov dword [ebp - 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4c1292
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 0x4c12b9
mov eax, dword [ebx]
jmp 0x4c11fc
mov eax, dword [ebx]
jmp 0x4c1218
mov eax, dword [ebx]
jmp 0x4c1249
mov eax, dword [ecx - 0xc]
push eax
push ecx
push edi
call fcn.00423be0
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 0x4c12df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x4c1306
call fcn.0053d6a6
xor eax, eax
mov esi, dword [ebp - 0x28]
cmp esi, dword [eax + 0x14]
jne 0x4c12f7
call fcn.0053d6a6
mov ecx, dword [esi]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov edi, ecx
jmp 0x4c11d0
mov eax, dword [ebx]
jmp 0x4c12ea
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.004c8ea0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 1
test eax, eax
je 0x4c1361
mov edi, eax
add eax, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c1361
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 0x4c1361
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 0x4c1384
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 0x4c13a7
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