Function at 0x4062c0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x3814
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x381c]
push esi
push edi
mov edi, dword [esp + 0x3828]
mov dword [esp + 0x381c], eax
mov eax, dword [ebx + 0x23c]
push eax
mov esi, ecx
lea ecx, [esp + 0x20]
push str.SELECT_ID_Name_X_Y_HP_MP_EXP_AP_Level_Metier_MetierLevel_SP_Str_Con_Dex__Int__Hit_ActorID_Faction_PK_Items_DeleteDate_HeadModelID_FROM_user_WHERE_AccountID_d_and_deleted0_ORDER_BY_CreateDate_LIMIT_3
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
call fcn.0047f034
add esp, 0xc
push 1
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00404890
test al, al
je 0x406334
mov ecx, dword [esp + 0xc]
push ecx
call sub.LIBMYSQL.dll_mysql_num_rows
cmp eax, 3
jle 0x40633b
xor al, al
jmp 0x406550
test eax, eax
mov dword [ebx + 4], eax
mov dword [esp + 0x10], 0
jle 0x4064e9
lea esi, [ebx + 0x60]
push ebp
mov edx, dword [esp + 0x10]
push edx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov edi, eax
mov eax, dword [edi]
push eax
call fcn.0047f135
mov dword [esi - 4], eax
mov ecx, dword [edi + 4]
mov eax, ecx
add esp, 4
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406374
sub eax, ebp
push eax
push ecx
mov ecx, esi
call fcn.004018c0
mov ecx, dword [edi + 8]
push ecx
call fcn.0047f135
mov dword [esi + 0x58], eax
mov edx, dword [edi + 0xc]
push edx
call fcn.0047f135
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x10]
push eax
call fcn.0047f135
mov dword [esi + 0x50], eax
mov ecx, dword [edi + 0x14]
push ecx
call fcn.0047f135
mov dword [esi + 0x54], eax
mov edx, dword [edi + 0x18]
push edx
call fcn.0047f135
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x1c]
push eax
call fcn.0047f135
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x20]
push ecx
call fcn.0047f135
mov dword [esi + 0x40], eax
mov edx, dword [edi + 0x24]
push edx
call fcn.0047f135
mov word [esi + 0x3a], ax
mov eax, dword [edi + 0x28]
push eax
call fcn.0047f135
mov word [esi + 0x3c], ax
mov ecx, dword [edi + 0x2c]
push ecx
call fcn.0047f135
mov dword [esi + 0x4c], eax
mov edx, dword [edi + 0x30]
push edx
call fcn.0047f135
mov word [esi + 0x62], ax
mov eax, dword [edi + 0x34]
push eax
call fcn.0047f135
mov word [esi + 0x60], ax
mov ecx, dword [edi + 0x38]
push ecx
call fcn.0047f135
mov word [esi + 0x64], ax
mov edx, dword [edi + 0x3c]
push edx
call fcn.0047f135
mov word [esi + 0x66], ax
mov eax, dword [edi + 0x40]
push eax
call fcn.0047f135
mov word [esi + 0x68], ax
mov ecx, dword [edi + 0x44]
push ecx
call fcn.0047f135
mov word [esi + 0x38], ax
mov edx, dword [edi + 0x48]
add esp, 0x40
push edx
call fcn.0047f135
mov word [esi + 0x3e], ax
mov eax, dword [edi + 0x4c]
push eax
call fcn.0047f135
mov dword [esi + 0x70], eax
mov ecx, dword [edi + 0x50]
add esp, 8
mov eax, ecx
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406475
sub eax, ebp
push eax
push ecx
lea ecx, [esi + 0x7c]
call fcn.004018c0
mov eax, dword [edi + 0x54]
test eax, eax
mov ecx, eax
jne 0x406496
mov ecx, 0x4aa28a
mov eax, ecx
lea ebp, [eax + 1]
jmp 0x4064a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4064a0
sub eax, ebp
push eax
push ecx
lea ecx, [esi + 0x1c]
call fcn.004018c0
mov ecx, dword [edi + 0x58]
push ecx
call fcn.0047f135
mov word [esi + 0x98], ax
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
add esp, 4
inc eax
add esi, 0xa0
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x406352
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
pop ebp
mov edx, dword [esp + 0xc]
push edx
call sub.LIBMYSQL.dll_mysql_free_result
mov eax, dword [ebx + 0x23c]
push eax
lea ecx, [esp + 0x20]
push str.SELECT_point_FROM_T_bank_WHERE_AccountID___d
push ecx
call fcn.0047f034
add esp, 0xc
push 1
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00404890
test al, al
jne 0x40652d
mov dword [edi], 0
jmp 0x40654e
mov esi, dword [esp + 0xc]
push esi
call sub.LIBMYSQL.dll_mysql_fetch_row
test eax, eax
je 0x40654e
mov ecx, dword [eax]
push ecx
call fcn.0047f135
add esp, 4
push esi
mov dword [edi], eax
call sub.LIBMYSQL.dll_mysql_free_result
mov al, 1
mov ecx, dword [esp + 0x381c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x3814
ret 8