Function at 0x53cc40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x743e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
mov al, byte [ecx]
push ebx
push esi
push edi
test al, al
je 0x53cebe
mov esi, dword [ebp + 8]
test esi, esi
jne 0x53cc98
push 0xb5
push 0x7b1190
push str.pUser
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x53cebe
mov edi, dword [ebp + 0xc]
push edi
call fcn.0053cee0
add esp, 4
test al, al
je 0x53cebe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
lea ecx, [ebp - 0x410]
push str.SELECT__FROM_cq_dup_name_WHERE_object_id_d__type1
push ecx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0xc
lea eax, [ebp - 0x410]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
mov dword [ebp - 4], 0
jne 0x53cd01
mov ecx, dword [esi]
push 0x7b14bc
push esi
call dword [ecx + 0xcc]
add esp, 8
jmp 0x53cebe
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 0x44]
test eax, eax
jl 0x53ce8f
cmp eax, 3
jge 0x53ce8f
cmp eax, 1
jne 0x53cd36
mov eax, dword [esi]
push 0x7b1498
push esi
call dword [eax + 0xcc]
add esp, 8
jmp 0x53ceb0
cmp eax, 2
jne 0x53cd51
mov eax, dword [esi]
push 0x7b1474
push esi
call dword [eax + 0xcc]
add esp, 8
jmp 0x53ceb0
push edi
lea eax, [ebp - 0x410]
push str.SELECT_count___FROM_cq_user_WHERE_name___s
push eax
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0xc
lea eax, [ebp - 0x410]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
mov byte [ebp - 4], 1
jne 0x53cda4
push 0x22
push str.....common_autoptr.h
push str.m_ptr
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x44]
test eax, eax
jle 0x53cde4
mov eax, dword [esi]
push 0x7b1418
push esi
call dword [eax + 0xcc]
add esp, 8
mov byte [ebp - 4], 0
test edi, edi
je 0x53cdd1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
jmp 0x53cebe
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x410]
push str.UPDATE_cq_user_SET_name_s_WHERE_id_u_LIMIT_1
push ecx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea eax, [ebp - 0x410]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 8]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x410]
push str.UPDATE_cq_dup_name_SET_complete1__new_name_s_WHERE_object_id_d__type1_LIMIT_1
push ecx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea eax, [ebp - 0x410]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 8]
mov ecx, dword [esi]
push 0x7b1498
push esi
call dword [ecx + 0xcc]
add esp, 8
mov byte [ebp - 4], 0
test edi, edi
je 0x53ce6c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0xc4
push 0x7b1190
push str.nComplete___0__nComplete___3
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov edx, dword [ebx]
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8