Function at 0x40e7a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1274
call fcn.00418d20
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
push ebx
mov word [ebp - 0x125a], ax
lea ebx, [ecx + 6]
movzx eax, word [ebx + 8]
mov word [ebp - 0x1250], ax
mov al, byte [ebx + 0xa]
mov dword [ebp - 0x1270], edx
lea edx, [ecx + 0x11]
mov byte [ebp - 0x124e], al
movzx eax, word [edx + 8]
mov word [ebp - 0x1245], ax
mov al, byte [edx + 0xa]
movq qword [ebp - 0x1258], xmm0
movq xmm0, qword [edx]
push esi
mov byte [ebp - 0x1243], al
xor eax, eax
push edi
mov dword [ebp - 0x1260], 0x45812c2
mov byte [ebp - 0x125c], 0
mov dword [ebp - 0x1268], ebx
mov dword [ebp - 0x126c], edx
movq qword [ebp - 0x124d], xmm0
mov cl, byte [eax + edx]
cmp cl, 0x20
je 0x40f32d
cmp cl, 0x22
je 0x40f32d
cmp cl, 0x27
je 0x40f32d
inc eax
cmp eax, 0xb
jl 0x40e831
push edx
push ebx
push str.SELECT__FROM_Character_WHERE_AccountID_s_AND_Name_s
push 0x422408
mov byte [ebp - 0x1242], 1
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x40f32d
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f32d
push str.cLevel
call fcn.00415100
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x40e8a8
or eax, 0xffffffff
jmp 0x40e8b6
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Class
mov word [ebp - 0x1240], ax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e8d0
or eax, eax
jmp 0x40e8de
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.LevelUpPoint
mov byte [ebp - 0x1241], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e8f7
or eax, eax
jmp 0x40e905
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Experience
mov dword [ebp - 0x123c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e91e
or eax, eax
jmp 0x40e92c
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Strength
mov dword [ebp - 0x1238], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e945
or eax, eax
jmp 0x40e953
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Dexterity
mov dword [ebp - 0x1230], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e96c
or eax, eax
jmp 0x40e97a
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Vitality
mov dword [ebp - 0x122c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e993
or eax, eax
jmp 0x40e9a1
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Energy
mov dword [ebp - 0x1228], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e9ba
or eax, eax
jmp 0x40e9c8
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Leadership
mov dword [ebp - 0x1224], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40e9e1
or eax, eax
jmp 0x40e9ef
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov dword [ebp - 0x1220], eax
lea eax, [ebp - 0x11fc]
push 0xf90
push eax
push str.Inventory
call fcn.00415160
push 0xb4
lea eax, [ebp - 0x26c]
push eax
push str.MagicList
call fcn.00415160
push str.Money
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ea34
or eax, eax
jmp 0x40ea42
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Life
mov dword [ebp - 0x1234], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ea61
movss xmm0, dword [0x41f360]
jmp 0x40ea81
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x1264]
movss xmm0, dword [ebp - 0x1264]
add esp, 4
call fcn.00418d50
push str.MaxLife
mov dword [ebp - 0x121c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40eaa5
movss xmm0, dword [0x41f360]
jmp 0x40eac5
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x1264]
movss xmm0, dword [ebp - 0x1264]
add esp, 4
call fcn.00418d50
push str.Mana
mov dword [ebp - 0x1218], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40eae9
movss xmm0, dword [0x41f360]
jmp 0x40eb09
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x1264]
movss xmm0, dword [ebp - 0x1264]
add esp, 4
call fcn.00418d50
push str.MaxMana
mov dword [ebp - 0x1214], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40eb2d
movss xmm0, dword [0x41f360]
jmp 0x40eb4d
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x1264]
movss xmm0, dword [ebp - 0x1264]
add esp, 4
call fcn.00418d50
push 0x41c0a4
mov dword [ebp - 0x1210], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40eb71
movss xmm0, dword [0x41f360]
jmp 0x40eb91
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x1264]
movss xmm0, dword [ebp - 0x1264]
add esp, 4
call fcn.00418d50
push str.MaxBP
mov dword [ebp - 0x120c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ebb5
movss xmm0, dword [0x41f360]
jmp 0x40ebd5
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x1264]
movss xmm0, dword [ebp - 0x1264]
add esp, 4
call fcn.00418d50
push str.StartItem
mov dword [ebp - 0x1208], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ebf3
or eax, eax
jmp 0x40ec01
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.BlocChat
mov byte [ebp - 0xa0], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ec1a
or eax, eax
jmp 0x40ec28
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.EquipView
mov byte [ebp - 0x9f], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ec41
or eax, eax
jmp 0x40ec4f
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Shield
mov byte [ebp - 0x9e], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ec6e
movss xmm0, dword [0x41f360]
jmp 0x40ec8e
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x1264]
movss xmm0, dword [ebp - 0x1264]
add esp, 4
call fcn.00418d50
push str.MaxShield
mov dword [ebp - 0x1204], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ecb2
movss xmm0, dword [0x41f360]
jmp 0x40ecd2
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [ebp - 0x1264]
movss xmm0, dword [ebp - 0x1264]
add esp, 4
call fcn.00418d50
push str.MapNumber
mov dword [ebp - 0x1200], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ecf0
or eax, eax
jmp 0x40ecfe
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.MapPosX
mov byte [ebp - 0x1b8], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ed17
or eax, eax
jmp 0x40ed25
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.MapPosY
mov byte [ebp - 0x1b7], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ed3e
or eax, eax
jmp 0x40ed4c
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.MapDir
mov byte [ebp - 0x1b6], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ed65
or eax, eax
jmp 0x40ed73
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.PkCount
mov byte [ebp - 0x1b5], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ed8c
or eax, eax
jmp 0x40ed9a
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.PkLevel
mov dword [ebp - 0x1b4], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40edb3
or eax, eax
jmp 0x40edc1
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.PkTime
mov dword [ebp - 0x1b0], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40edda
or eax, eax
jmp 0x40ede8
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.CtlCode
mov dword [ebp - 0x1ac], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ee01
or eax, eax
jmp 0x40ee0f
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov byte [ebp - 0x1a8], al
lea eax, [ebp - 0x1a7]
push 0x32
push eax
push str.Quest
call fcn.00415160
push 0xd0
lea eax, [ebp - 0x170]
push eax
push str.EffectList
call fcn.00415160
push str.FruitAddPoint
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ee51
or eax, eax
jmp 0x40ee5f
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.FruitSubPoint
mov word [ebp - 0x174], ax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ee79
or eax, eax
jmp 0x40ee87
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Kills
mov word [ebp - 0x172], ax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40eea1
or eax, eax
jmp 0x40eeaf
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Deads
mov dword [ebp - 0x90], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40eec8
or eax, eax
jmp 0x40eed6
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Flag
mov dword [ebp - 0x8c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40eeef
or eax, eax
jmp 0x40eefd
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.CheckFlag
mov dword [ebp - 0x14], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ef13
or eax, eax
jmp 0x40ef21
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.ExtInventory
mov dword [ebp - 0x10], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ef37
or eax, eax
jmp 0x40ef45
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov byte [ebp - 0x9d], al
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call ebx
push dword [ebp - 0x1268]
push str.SELECT_ExtWarehouse_FROM_AccountCharacter_WHERE_Id_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.ExtWarehouse
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40efa0
or eax, eax
jmp 0x40efae
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
mov byte [ebp - 0x9c], al
call edi
push 2
push dword [0x422414]
call ebx
push dword [ebp - 0x1268]
push str.SELECT_WarehouseCount_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.WarehouseCount
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40effd
or eax, eax
jmp 0x40f00b
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
movzx eax, al
mov dword [ebp - 0xc], eax
call edi
push 2
push dword [0x422414]
call ebx
push dword [ebp - 0x1268]
push str.SELECT_ServerName_FROM_MEMB_STAT_WHERE_memb___id_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.ServerName
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f068
push 0x32
lea eax, [ebp - 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x40f082
shl eax, 0xd
push 0x31
add eax, 0x423036
push eax
lea eax, [ebp - 0x48]
push 0x32
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call ebx
push dword [ebp - 0x1268]
push str.SELECT_Chaos_Bless_Soul_Life_Creation_Gemstone_Guardian_Harmony_LowRefine_HigRefine_FROM_CustomJewelBank_WHERE_AccountID_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Chaos
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f0cb
or eax, eax
jmp 0x40f0d9
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Bless
mov dword [ebp - 0x84], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f0f2
or eax, eax
jmp 0x40f100
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Soul
mov dword [ebp - 0x80], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f116
or eax, eax
jmp 0x40f124
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Life
mov dword [ebp - 0x7c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f13a
or eax, eax
jmp 0x40f148
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Creation
mov dword [ebp - 0x78], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f15e
or eax, eax
jmp 0x40f16c
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Gemstone
mov dword [ebp - 0x74], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f182
or eax, eax
jmp 0x40f190
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Guardian
mov dword [ebp - 0x70], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f1a6
or eax, eax
jmp 0x40f1b4
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Harmony
mov dword [ebp - 0x6c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f1ca
or eax, eax
jmp 0x40f1d8
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.LowRefine
mov dword [ebp - 0x68], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f1ee
or eax, eax
jmp 0x40f1fc
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.HigRefine
mov dword [ebp - 0x64], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f212
or eax, eax
jmp 0x40f220
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x60], eax
call edi
push 2
push dword [0x422414]
call ebx
push dword [ebp - 0x126c]
push dword [ebp - 0x1268]
push str.EXEC_WZ_GetResetInfo__s__s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Reset
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f272
or eax, eax
jmp 0x40f280
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x98], eax
call edi
push 2
push dword [0x422414]
call ebx
push dword [ebp - 0x126c]
push dword [ebp - 0x1268]
push str.EXEC_WZ_GetMasterResetInfo__s__s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.MasterReset
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f2d5
or eax, eax
jmp 0x40f2e3
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x94], eax
call edi
push 2
push dword [0x422414]
call ebx
push dword [ebp - 0x1268]
push dword [ebp - 0x126c]
push str.UPDATE_AccountCharacter_SET_GameIDC_s_WHERE_Id_s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call ebx
jmp 0x40f34e
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x1242], 0
push 0x1258
lea eax, [ebp - 0x1260]
push eax
push dword [ebp - 0x1270]
call fcn.004163f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret