Function at 0x5c0b80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x747fdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x820
push ebx
push esi
push edi
mov ebx, ecx
call fcn.005bfc00
test al, al
jne 0x5c0dad
mov esi, dword [ebp + 8]
test esi, esi
je 0x5c0dad
push esi
mov ecx, ebx
call fcn.005bfcb0
test eax, eax
je 0x5c0bf8
cmp eax, 2
jne 0x5c0dad
mov ecx, dword [ebx + 8]
lea eax, [ebx + 8]
push 0x7bd6cc
push eax
call dword [ecx + 0x1b4]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x5e4]
push esi
push eax
push str.cq_deluser
push 0x79a1ac
lea edx, [ebp - 0x40c]
push str.INSERT_INTO__s_SELECT__FROM__s_WHERE_account_id_u__id_u_ORDER_BY_last_login_DESC_LIMIT_1
push edx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x18
lea edx, [ebp - 0x40c]
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 8]
test al, al
je 0x5c0dad
mov eax, dword [ebx + 0x5e4]
push eax
push esi
push str.cq_deluser
lea eax, [ebp - 0x40c]
push str.DELETE_FROM__s_WHERE_id_u_AND_account_id_u
push eax
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x14
lea eax, [ebp - 0x40c]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 8]
push esi
push 0x79a178
lea ecx, [ebp - 0x40c]
push str.UPDATE__s_SET_amountamount1_WHERE_leader_id_u_AND_del_flag0_LIMIT_1
push ecx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea eax, [ebp - 0x40c]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 8]
push esi
push 0x79a16c
lea ecx, [ebp - 0x40c]
push str.UPDATE__s_SET_rank1000_WHERE_id_u_LIMIT_1
push ecx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea eax, [ebp - 0x40c]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 8]
push esi
push 0x7ac7a8
lea ecx, [ebp - 0x40c]
push str.UPDATE__s_SET_amountamount1_WHERE_leader_id_u_AND_del_flag0_LIMIT_1
push ecx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea eax, [ebp - 0x40c]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 8]
push esi
mov ecx, ebx
call fcn.005c1460
mov edi, eax
test edi, edi
je 0x5c0dad
lea ecx, [ebp - 0x82c]
mov byte [edi + 0x16], 0
mov byte [edi + 0x15], 0
call fcn.00676b80
mov ecx, dword [edi + 0x20]
mov dl, byte [edi + 0x16]
mov eax, dword [edi + 0x1c]
push ecx
mov cl, byte [edi + 0x15]
push edx
mov edx, dword [edi + 0x18]
push eax
mov al, byte [edi + 0x14]
push ecx
push edx
mov edx, dword [edi]
lea ecx, [edi + 4]
push eax
push ecx
push edx
push 5
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], 0
call fcn.00676db0
test eax, eax
jne 0x5c0d78
push 0x189
push 0x7bd2e8
push str.msg.Create_MSG_SUBUSERINFO_RESUME_SUB_USER__pInfo__id__pInfo__szName__pInfo__ucUserType__pInfo__nLevel__pInfo__bOnline__pInfo__dwProfession__pInfo__bDel__pInfo__dwLastLogin_
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x5c0d8b
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
lea edx, [ebp - 0x82c]
push edx
call dword [eax + 0x1b0]
push edi
mov ecx, ebx
call fcn.005c1130
push esi
mov ecx, ebx
call fcn.005c1630
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], 0xffffffff
call fcn.00676c10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4