Function at 0x408530
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x49d74b
mov eax, dword fs:[0]
push eax
mov eax, 0x78d4
mov dword fs:[0], esp
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x78ec]
mov dword [esp + 0x78d8], eax
mov eax, dword [esi + 0x2ac]
push eax
mov ebx, ecx
lea ecx, [esp + 0x40dc]
push str.SELECT_COUNT___FROM_user_WHERE_AccountID___d_and_deleted0
push ecx
call fcn.0047f034
add esp, 0xc
push 1
push 0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x40e4]
push eax
mov ecx, ebx
call fcn.00404890
test al, al
jne 0x4085aa
mov eax, 3
jmp 0x408a54
push ebp
push edi
mov edi, dword [esp + 0x10]
push edi
call sub.LIBMYSQL.dll_mysql_fetch_row
mov ecx, dword [eax]
push ecx
call fcn.0047f135
add esp, 4
push edi
mov ebp, eax
call sub.LIBMYSQL.dll_mysql_free_result
cmp ebp, 3
jge 0x4089df
xor ebp, ebp
mov dword [esi + 0x25c], ebp
cmp dword [esi + 0xac], 0x10
jb 0x4085eb
mov edx, dword [esi + 0x98]
jmp 0x4085f1
lea edx, [esi + 0x98]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4085f6
sub eax, edi
push eax
mov eax, dword [ebx + 0xd4]
push edx
lea edx, [esp + 0x40a4]
push edx
push eax
call sub.LIBMYSQL.dll_mysql_real_escape_string
xor eax, eax
jmp 0x408620
mov cl, byte [esp + eax + 0x409c]
mov byte [esp + eax + 0x4058], cl
inc eax
test cl, cl
jne 0x408620
lea ecx, [esp + 0x4058]
push ecx
call fcn.0049bdde
mov dword [esi + 0x270], ebp
mov eax, dword [esi + 0x1d0]
add esp, 4
cmp eax, 0x10
jb 0x40865c
mov ebp, dword [esi + 0x1bc]
jmp 0x408662
lea ebp, [esi + 0x1bc]
mov ecx, dword [esi + 0x100]
mov eax, 0x10
cmp ecx, eax
jb 0x408679
mov edi, dword [esi + 0xec]
jmp 0x40867f
lea edi, [esi + 0xec]
cmp dword [esi + 0xc8], eax
jb 0x40868f
mov edx, dword [esi + 0xb4]
jmp 0x408695
lea edx, [esi + 0xb4]
cmp dword [esi + 0x74], eax
jb 0x40869f
mov ecx, dword [esi + 0x60]
jmp 0x4086a2
lea ecx, [esi + 0x60]
cmp dword [esi + 0x2a8], eax
jb 0x4086b2
mov eax, dword [esi + 0x294]
jmp 0x4086b8
lea eax, [esi + 0x294]
push ebp
movsx ebp, word [esi + 0x194]
push 0x4aaf18
push 0x4aaf18
push ebp
movsx ebp, word [esi + 0x200]
push ebp
movsx ebp, word [esi + 0x1fe]
push ebp
mov ebp, dword [esi + 0x104]
push ebp
push edi
push edx
mov edx, dword [esi + 0x204]
push edx
mov edx, dword [esi + 0x20c]
push edx
mov edx, dword [esi + 0x208]
push edx
mov edx, dword [esi + 0x218]
push edx
mov edx, dword [esi + 0x214]
push edx
mov edx, dword [esi + 0x220]
push edx
mov edx, dword [esi + 0x21c]
push edx
push ecx
movsx ecx, word [esi + 0x1fc]
push eax
mov eax, dword [esi + 0x2ac]
push eax
push ecx
lea edx, [esp + 0x40ec]
push edx
lea eax, [esp + 0x40ac]
push eax
lea ecx, [esp + 0x4138]
push str.INSERT_INTO_user__ID__UniqueName__Name__ActorID__AccountID__Account__Scene__X__Y__HP__MP__EXP__AP__Level__Skills__Items__Gold__Metier_MetierLevel__HeadModelID__LastDelUnionTime__CreateDate__LastRemoveMPTime__Password___VALUES_NULL___s___s___d___d___s___s___d___d___d___d___d___d___d___s___s___d___d___d___d___s__NOW_____s___s_
push ecx
call fcn.0047f034
add esp, 0x60
push 0
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40ec]
push eax
mov ecx, ebx
call fcn.00404890
test al, al
jne 0x4087b1
cmp dword [esi + 0xac], 0x10
jb 0x408778
mov esi, dword [esi + 0x98]
jmp 0x40877e
add esi, 0x98
mov ecx, dword [0x52f0f4]
push esi
push str.Cant_create_user__s_n
push ecx
call fcn.0048dda0
mov edx, dword [ebx + 0xd4]
add esp, 0xc
push edx
call sub.LIBMYSQL.dll_mysql_errno
sub eax, 0x426
neg eax
sbb eax, eax
and eax, 2
inc eax
jmp 0x408a52
lea eax, [esp + 0x4058]
push eax
lea ecx, [esp + 0x40e4]
push str.SELECT__ID__FROM__user__WHERE__UniqueName____s
push ecx
call fcn.0047f034
add esp, 0xc
push 1
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40ec]
push eax
mov ecx, ebx
call fcn.00404890
test al, al
je 0x4089df
mov edi, dword [esp + 0x10]
push edi
call sub.LIBMYSQL.dll_mysql_num_rows
cmp eax, 1
jne 0x408801
test edx, edx
je 0x40883d
cmp dword [esi + 0xac], 0x10
jb 0x408812
mov esi, dword [esi + 0x98]
jmp 0x408818
add esi, 0x98
mov ecx, dword [0x52f0f4]
push esi
push str.Cant_find_created_user__s_n
push ecx
call fcn.0048dda0
add esp, 0xc
push edi
call sub.LIBMYSQL.dll_mysql_free_result
mov eax, 3
jmp 0x408a52
push edi
call sub.LIBMYSQL.dll_mysql_fetch_row
mov edx, dword [eax]
push edx
call fcn.0047f135
add esp, 4
push edi
mov dword [esi], eax
call sub.LIBMYSQL.dll_mysql_free_result
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x40e4]
push str.INSERT_INTO_community_UserID__Friend__VALUES__d___
push ecx
call fcn.0047f034
add esp, 0xc
push 1
push 0
push 0
lea edx, [esp + 0x40ec]
push edx
mov ecx, ebx
call fcn.00404890
test al, al
jne 0x4088bc
cmp dword [esi + 0xac], 0x10
jb 0x408898
mov esi, dword [esi + 0x98]
jmp 0x40889e
add esi, 0x98
mov eax, dword [0x52f0f8]
push esi
push str.Cant_create_community_info_for_user__s_n
push eax
call fcn.0048dda0
add esp, 0xc
mov eax, 3
jmp 0x408a52
mov ecx, dword [esi + 0x2ac]
push ecx
lea edx, [esp + 0x40e4]
push str.SELECT_Items_BankMoney_Password_Point_FROM_T_bank_WHERE_AccountID___d
push edx
call fcn.0047f034
add esp, 0xc
push 1
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40ec]
push ecx
mov ecx, ebx
call fcn.00404890
test al, al
je 0x4089df
mov ebp, dword [esp + 0x10]
push ebp
call sub.LIBMYSQL.dll_mysql_num_rows
test eax, eax
push ebp
jne 0x4089ed
call sub.LIBMYSQL.dll_mysql_free_result
mov edx, dword [0x4d96c0]
push 0x4d96a8
push 1
push 6
push edx
lea ecx, [esp + 0x24]
call fcn.0045eba0
push 0x4d96a8
lea ecx, [esp + 0x18]
mov dword [esp + 0x78f0], 0
lea edi, [esi + 0x198]
call fcn.0045ec80
push eax
mov ecx, edi
call fcn.00403620
xor ebp, ebp
mov dword [esi + 0x1b4], ebp
mov dword [esi + 0x268], ebp
mov ecx, dword [edi + 0x18]
mov eax, 0x10
cmp ecx, eax
jb 0x40896f
mov edi, dword [edi + 4]
jmp 0x408972
add edi, 4
cmp dword [esi + 0x2a8], eax
jb 0x408982
mov eax, dword [esi + 0x294]
jmp 0x408988
lea eax, [esi + 0x294]
push 0x4aa28a
push ebp
push ebp
push edi
push eax
mov eax, dword [esi + 0x2ac]
push eax
lea ecx, [esp + 0x40f8]
push str.INSERT_INTO_T_bank_AccountID_Account_Items_BankMoney_Point_Password__VALUES__d__s__s__d__d__s_
push ecx
call fcn.0047f034
add esp, 0x20
push 1
push ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40ec]
push eax
mov ecx, 0x4d8c60
call fcn.00404890
test al, al
lea ecx, [esp + 0x14]
mov dword [esp + 0x78ec], 0xffffffff
jne 0x4089e6
call fcn.0045e2d0
mov eax, 3
jmp 0x408a52
call fcn.0045e2d0
jmp 0x408a3b
call sub.LIBMYSQL.dll_mysql_fetch_row
mov edi, eax
mov ecx, dword [edi]
push ecx
lea ecx, [esi + 0x198]
call fcn.00403620
mov edx, dword [edi + 4]
push edx
call fcn.0047f1bd
mov dword [esi + 0x1b4], eax
mov eax, dword [edi + 8]
add esp, 4
push eax
lea ecx, [esi + 0x1b8]
call fcn.00403620
mov ecx, dword [edi + 0xc]
push ecx
call fcn.0047f1bd
add esp, 4
push ebp
mov dword [esi + 0x268], eax
call sub.LIBMYSQL.dll_mysql_free_result
push 0
push 0
push 1
push esi
mov ecx, ebx
mov byte [esi + 0x320], 0
call fcn.00407b80
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x78dc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x78d4]
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x78e0
ret 4