Function at 0x5077a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x742061
push eax
mov eax, 0x198c
mov dword fs:[0], esp
call fcn.00702820
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
push eax
call fcn.00507660
test al, al
jne 0x50780a
push 0xb8
push 0x7ad5bc
push str.CheckMessage_szMessage_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.007028fe
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
sar edx, 6
mov ecx, edx
add eax, ebx
shr ecx, 0x1f
add edx, ecx
cmp edx, eax
setge al
test al, al
je 0x507976
call fcn.007028fe
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esi + 0x14], edx
mov eax, dword [esi + 4]
cmp dword [eax], eax
jne 0x507976
lea ecx, [ebp - 0x540]
call fcn.005c28a0
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push 0
push 0
mov eax, dword [ebx + 8]
lea edi, [ebx + 8]
push 0x7e1
push 0xffffff
push 0
push edx
push str.ALLUSERS
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 8]
push eax
lea ecx, [ebp - 0x540]
call fcn.005c29b0
test eax, eax
jne 0x5078c9
push 0xbe
push 0x7ad5bc
push str.msg.Create_pUser__GetName____ALLUSERS_NAME__szMessage__NULL__0xffffff___TXTATR_WORLD_AD_
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x5078dd
mov ecx, dword [0x7fd5e0]
lea eax, [ebp - 0x540]
push 0
push eax
mov edx, dword [ecx]
call dword [edx + 0x28]
mov dword [esi + 8], 0x2d
call fcn.007028fe
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
push 1
call fcn.0040ab00
add esp, 8
mov ecx, edi
push eax
mov eax, dword [edi]
call dword [eax + 8]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
push eax
push str.cq_ad_log
lea eax, [ebp - 0x1998]
push str.INSERT_INTO__s_set_user_id_u__user_name_s__publish_time_d__addition_u__words_s
push eax
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x20
lea eax, [ebp - 0x1998]
mov edx, dword [ecx]
push 1
push eax
call dword [edx + 8]
lea ecx, [ebp - 0x540]
mov dword [ebp - 4], 0xffffffff
call fcn.005c2950
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 0xc
call fcn.00728cf3
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x507996
mov dword [eax], 0x754b6c
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov edi, eax
jmp 0x507998
xor edi, edi
cmp edi, ecx
mov dword [ebp - 0x10], edi
je 0x507a41
mov ebx, dword [0x7fd5f0]
push 0x7b4240
push 0x7ad5b0
lea ecx, [ebp - 0x114]
push str.SELECT__FROM__s_WHERE__s0_LIMIT_1
push ecx
call fcn.0070258b
mov ecx, dword [0x801a68]
add esp, 0x10
test ecx, ecx
jne 0x507a19
mov edx, dword [ebx]
lea eax, [ebp - 0x114]
push ecx
push eax
mov ecx, ebx
call dword [edx]
push eax
mov ecx, 0x801a68
call fcn.0047bd90
mov ecx, dword [0x801a68]
test ecx, ecx
setne al
test al, al
jne 0x507a19
push 0x38
push str.....GameBaseCodeMTGameData.h
push str.CreateNewDefault_pDb_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x507a41
mov edx, dword [ecx]
push 0
call dword [edx]
test eax, eax
mov dword [edi + 4], eax
je 0x507a35
mov edx, dword [eax]
push 0x7b4240
mov ecx, eax
call dword [edx + 0x30]
mov dword [edi + 8], eax
mov edx, dword [edi + 4]
test edx, edx
setne al
test al, al
jne 0x507a5a
push 0xd0
push 0x7ad5bc
push str.pData__pData__Create_Database____ID_NONE_
push str.IF_OK
jmp 0x5077e8
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, edi
mov edx, dword [edi]
mov ebx, dword [eax]
call dword [edx + 4]
mov ecx, dword [ebp - 0x10]
push eax
push 2
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x10]
mov edx, dword [edi + 8]
add edi, 8
push 0x10
mov ebx, dword [eax]
mov ecx, edi
call dword [edx + 8]
mov ecx, dword [ebp - 0x10]
push eax
push 3
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x10]
push 0
push 1
mov ebx, dword [eax]
call fcn.0040ab00
mov ecx, dword [ebp - 0x10]
add esp, 8
push eax
push 4
call dword [ebx + 0x10]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push 0x51
push eax
mov edx, dword [ecx]
push 6
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
call dword [edx + 0x30]
mov eax, dword [esi + 4]
add esi, 4
cmp dword [eax], eax
je 0x507af4
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp + 8], eax
je 0x507af4
mov ecx, dword [ebp - 0x10]
mov ebx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, ebx
mov ebx, dword [ebp + 8]
push eax
push 1
mov ecx, ebx
call dword [edx + 0x10]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
lea ecx, [ebp - 0x10]
push ecx
push ecx
push esp
mov ecx, esi
call fcn.00508a50
lea edx, [ebp + 8]
mov ecx, esi
push edx
call fcn.00508a60
mov esi, dword [esi]
xor ecx, ecx
mov eax, dword [esi]
cmp eax, esi
je 0x507b1d
mov eax, dword [eax]
inc ecx
cmp eax, esi
jne 0x507b16
push ecx
lea eax, [ebp - 0x1198]
push str.Your_message_is_at__d_waiting_list.
push eax
call fcn.0070258b
add esp, 0xc
lea ecx, [ebp - 0x96c]
call fcn.005c28a0
push 0
push 0
push 0x840
push 0xffffff
lea ecx, [ebp - 0x1198]
push 0
push ecx
push str.ALLUSERS
push str.SYSTEM
lea ecx, [ebp - 0x96c]
mov dword [ebp - 4], 1
call fcn.005c29b0
test eax, eax
jne 0x507b97
push pe_nt_image_headers32
push 0x7ad5bc
push str.msg.Create__TXTATR_MESSAGEBOX__szText_
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x507ba8
mov edx, dword [edi]
lea eax, [ebp - 0x96c]
push eax
mov ecx, edi
call dword [edx + 0x1b0]
call fcn.0042a8a0
test eax, eax
je 0x507c28
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi]
push ecx
mov ecx, edi
call dword [edx + 8]
push eax
lea eax, [ebp - 0x1598]
push 0x7a8454
push eax
call fcn.0070258b
add esp, 0x10
lea ecx, [ebp - 0xd98]
call fcn.005950c0
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov edx, dword [ecx]
call dword [edx + 4]
push eax
lea eax, [ebp - 0x1598]
push eax
push 0x20
lea ecx, [ebp - 0xd98]
call fcn.00595210
test eax, eax
je 0x507c19
call fcn.0042a8a0
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
lea eax, [ebp - 0xd98]
push eax
call dword [edx + 0x1b0]
lea ecx, [ebp - 0xd98]
mov byte [ebp - 4], 1
call fcn.00595170
lea ecx, [ebp - 0x96c]
mov dword [ebp - 4], 0xffffffff
call fcn.005c2950
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8