Function at 0x4c0750
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f38f
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
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 esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi + 8], 0
jne 0x4c07cb
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4c07c4
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c07c4
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c07c4
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
xor al, al
jmp 0x4c0a58
cmp byte [esi + 0x10], 0
je 0x4c078d
mov edi, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
or eax, 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov byte [esi + 0x10], 0
mov word [ebp - 0x218], ax
call fcn.00544310
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push edx
push eax
push str.misc
lea ecx, [ebp - 0x218]
push str.UPDATE__s_SET_value___I64u_WHERE_prop__seq_
push ecx
mov ecx, 0x104
call fcn.00420800
add esp, 0x20
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x218]
call fcn.00423950
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x220]
call fcn.004b8120
test al, al
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
sete byte [ebp - 0x219]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c0878
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x219], 0
je 0x4c0897
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004551c0
xor al, al
jmp 0x4c0a58
lea ecx, [ebp - 0x220]
push ecx
mov ecx, str.COMMIT_TRANSACTION
call fcn.00423950
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x220]
call fcn.004b8120
test al, al
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
sete byte [ebp - 0x219]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c08e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x219], 0
jne 0x4c0881
xor eax, eax
cmp dword [ebp + 8], eax
je 0x4c0a47
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], eax
push ebx
push edi
push str.activity
lea ecx, [ebp - 0x218]
push str.SELECT_time_seq_FROM__s_WHERE_seq____I64u_
push ecx
mov ecx, 0x104
mov byte [ebp - 4], 3
call fcn.00420800
add esp, 0x14
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x218]
call fcn.00423950
lea eax, [ebp - 0x230]
push eax
sub esp, 8
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x224], esp
push ecx
call fcn.004b79f0
mov esi, dword [esi + 0xc]
push esi
lea edx, [ebp - 0x220]
call fcn.004cb670
test al, al
lea ecx, [ebp - 0x220]
sete bl
mov byte [ebp - 4], 3
call fcn.00423d60
test bl, bl
jne 0x4c0a38
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebx + 0x14]
mov edx, dword [eax]
mov eax, dword [ebx]
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x228], eax
nop
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebx]
test eax, eax
je 0x4c09ad
cmp eax, ecx
je 0x4c09b2
call fcn.0053d6a6
cmp dword [ebp - 0x224], esi
je 0x4c0a38
lea esi, [ebp - 0x228]
call fcn.004c73e0
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
push ecx
push edx
call fcn.004c73e0
lea ecx, [ebp - 0x220]
push ecx
mov ecx, eax
call fcn.004c0b20
add esp, 0xc
lea edx, [ebp - 0x220]
mov byte [ebp - 4], 5
mov edi, dword [ebp + 8]
push edx
call fcn.004226a0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c0a1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [ebp - 0x238]
lea esi, [ebp - 0x228]
call fcn.004c7410
mov eax, dword [ebp - 0x228]
jmp 0x4c09a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.004551c0
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004551c0
mov al, 1
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 8