Function at 0x40ec40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x123c
call fcn.004328a0
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x122c], ax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x123c], edx
lea edx, [ecx + 6]
mov word [ebp - 0x1222], ax
mov al, byte [edx + 0xa]
push ebx
lea ebx, [ecx + 0x11]
mov byte [ebp - 0x1220], al
movzx eax, word [ebx + 8]
mov word [ebp - 0x1217], ax
mov al, byte [ebx + 0xa]
movq qword [ebp - 0x122a], xmm0
movq xmm0, qword [ebx]
push esi
mov byte [ebp - 0x1215], al
xor eax, eax
push edi
mov dword [ebp - 0x1230], 0x42812c2
mov dword [ebp - 0x1238], edx
movq qword [ebp - 0x121f], xmm0
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x40f79e
cmp cl, 0x22
je 0x40f79e
cmp cl, 0x27
je 0x40f79e
inc eax
cmp eax, 0xb
jl 0x40ecc4
push ebx
push edx
push str.SELECT__FROM_Character_WHERE_AccountID_s_AND_Name_s
push 0x447690
mov byte [ebp - 0x1214], 1
call fcn.00416db0
add esp, 0x10
test al, al
je 0x40f79e
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f79e
push str.cLevel
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ed34
or eax, eax
jmp 0x40ed45
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Class
mov word [ebp - 0x1212], ax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ed5f
or eax, eax
jmp 0x40ed70
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.LevelUpPoint
mov byte [ebp - 0x1213], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ed89
or eax, eax
jmp 0x40ed9a
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Experience
mov dword [ebp - 0x1210], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40edb3
or eax, eax
jmp 0x40edc4
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Strength
mov dword [ebp - 0x120c], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40eddd
or eax, eax
jmp 0x40edee
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Dexterity
mov dword [ebp - 0x1204], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ee07
or eax, eax
jmp 0x40ee18
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Vitality
mov dword [ebp - 0x1200], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ee31
or eax, eax
jmp 0x40ee42
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Energy
mov dword [ebp - 0x11fc], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ee5b
or eax, eax
jmp 0x40ee6c
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Leadership
mov dword [ebp - 0x11f8], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ee85
or eax, eax
jmp 0x40ee96
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov dword [ebp - 0x11f4], eax
lea eax, [ebp - 0x11d0]
push 0xf90
push eax
push str.Inventory
call fcn.004170c0
push 0xb4
lea eax, [ebp - 0x240]
push eax
push str.MagicList
call fcn.004170c0
push str.Money
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40eedb
or eax, eax
jmp 0x40eeec
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Life
mov dword [ebp - 0x1208], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ef0b
movss xmm0, dword [0x43efe4]
jmp 0x40ef2a
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x1234]
movss xmm0, dword [ebp - 0x1234]
add esp, 4
call fcn.00432ad0
push str.MaxLife
mov dword [ebp - 0x11f0], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ef4e
movss xmm0, dword [0x43efe4]
jmp 0x40ef6d
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x1234]
movss xmm0, dword [ebp - 0x1234]
add esp, 4
call fcn.00432ad0
push str.Mana
mov dword [ebp - 0x11ec], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ef91
movss xmm0, dword [0x43efe4]
jmp 0x40efb0
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x1234]
movss xmm0, dword [ebp - 0x1234]
add esp, 4
call fcn.00432ad0
push str.MaxMana
mov dword [ebp - 0x11e8], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40efd4
movss xmm0, dword [0x43efe4]
jmp 0x40eff3
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x1234]
movss xmm0, dword [ebp - 0x1234]
add esp, 4
call fcn.00432ad0
push 0x43b658
mov dword [ebp - 0x11e4], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f017
movss xmm0, dword [0x43efe4]
jmp 0x40f036
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x1234]
movss xmm0, dword [ebp - 0x1234]
add esp, 4
call fcn.00432ad0
push str.MaxBP
mov dword [ebp - 0x11e0], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f05a
movss xmm0, dword [0x43efe4]
jmp 0x40f079
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x1234]
movss xmm0, dword [ebp - 0x1234]
add esp, 4
call fcn.00432ad0
push str.StartItem
mov dword [ebp - 0x11dc], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f097
or eax, eax
jmp 0x40f0a8
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Shield
mov byte [ebp - 0x74], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f0c4
movss xmm0, dword [0x43efe4]
jmp 0x40f0e3
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x1234]
movss xmm0, dword [ebp - 0x1234]
add esp, 4
call fcn.00432ad0
push str.MaxShield
mov dword [ebp - 0x11d8], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f107
movss xmm0, dword [0x43efe4]
jmp 0x40f126
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x1234]
movss xmm0, dword [ebp - 0x1234]
add esp, 4
call fcn.00432ad0
push str.MapNumber
mov dword [ebp - 0x11d4], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f144
or eax, eax
jmp 0x40f155
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MapPosX
mov byte [ebp - 0x18c], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f16e
or eax, eax
jmp 0x40f17f
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MapPosY
mov byte [ebp - 0x18b], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f198
or eax, eax
jmp 0x40f1a9
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MapDir
mov byte [ebp - 0x18a], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f1c2
or eax, eax
jmp 0x40f1d3
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.PkCount
mov byte [ebp - 0x189], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f1ec
or eax, eax
jmp 0x40f1fd
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.PkLevel
mov dword [ebp - 0x188], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f216
or eax, eax
jmp 0x40f227
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.PkTime
mov dword [ebp - 0x184], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f240
or eax, eax
jmp 0x40f251
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.CtlCode
mov dword [ebp - 0x180], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f26a
or eax, eax
jmp 0x40f27b
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov byte [ebp - 0x17c], al
lea eax, [ebp - 0x17b]
push 0x32
push eax
push str.Quest
call fcn.004170c0
push 0xd0
lea eax, [ebp - 0x144]
push eax
push str.EffectList
call fcn.004170c0
push str.FruitAddPoint
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f2bd
or eax, eax
jmp 0x40f2ce
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.FruitSubPoint
mov word [ebp - 0x148], ax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f2e8
or eax, eax
jmp 0x40f2f9
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Kills
mov word [ebp - 0x146], ax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f313
or eax, eax
jmp 0x40f324
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Deads
mov dword [ebp - 0x68], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f33a
or eax, eax
jmp 0x40f34b
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.EquipView
mov dword [ebp - 0x64], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f361
or eax, eax
jmp 0x40f372
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.ExtInventory
mov byte [ebp - 0xc], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f388
or eax, eax
jmp 0x40f399
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Married
mov byte [ebp - 0x73], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f3af
or eax, eax
jmp 0x40f3c0
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MarryCouple
mov word [ebp - 0x60], ax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f3e7
xorps xmm0, xmm0
mov word [ebp - 0x56], 0
movq qword [ebp - 0x5e], xmm0
mov byte [ebp - 0x54], 0
jmp 0x40f400
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x5e]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.Chaos
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f413
or eax, eax
jmp 0x40f424
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Bless
mov dword [ebp - 0x50], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f43a
or eax, eax
jmp 0x40f44b
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Souls
mov dword [ebp - 0x4c], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f461
or eax, eax
jmp 0x40f472
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Lifes
mov dword [ebp - 0x48], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f488
or eax, eax
jmp 0x40f499
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Creations
mov dword [ebp - 0x44], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f4af
or eax, eax
jmp 0x40f4c0
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.GemStones
mov dword [ebp - 0x40], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f4d6
or eax, eax
jmp 0x40f4e7
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Guardians
mov dword [ebp - 0x3c], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f4fd
or eax, eax
jmp 0x40f50e
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Harmonys
mov dword [ebp - 0x38], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f524
or eax, eax
jmp 0x40f535
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.LowStones
mov dword [ebp - 0x34], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f54b
or eax, eax
jmp 0x40f55c
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.HighStones
mov dword [ebp - 0x30], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f572
or eax, eax
jmp 0x40f583
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Flag
mov dword [ebp - 0x2c], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f599
or eax, eax
jmp 0x40f5aa
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.CheckFlag
mov dword [ebp - 0x14], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f5c0
or eax, eax
jmp 0x40f5d1
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov dword [ebp - 0x10], eax
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call edi
push dword [ebp - 0x1238]
push str.SELECT_ExtWarehouse_FROM_AccountCharacter_WHERE_Id_s
push 0x447690
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.ExtWarehouse
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f629
or eax, eax
jmp 0x40f63a
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov byte [ebp - 0x72], al
call esi
push 2
push dword [0x44769c]
call edi
push ebx
push dword [ebp - 0x1238]
push str.EXEC_WZ_GetResetInfo__s__s
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Reset
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f687
or eax, eax
jmp 0x40f698
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x70], eax
call esi
push 2
push dword [0x44769c]
call edi
push ebx
push dword [ebp - 0x1238]
push str.EXEC_WZ_GetMasterResetInfo__s__s
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.MasterReset
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40f6e5
or eax, eax
jmp 0x40f6f6
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x6c], eax
call esi
push 2
push dword [0x44769c]
call edi
push dword [ebp - 0x1238]
push str.SELECT_AccountID_FROM_BotPet_WHERE_AccountID_s_AND_BotLife___BotMaxLife
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40f749
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f749
call fcn.00417020
mov byte [ebp - 0xb], 1
call fcn.00417020
jmp 0x40f771
push dword [0x44769c]
call esi
push 2
push dword [0x44769c]
call edi
push dword [0x44769c]
mov byte [ebp - 0xb], 0
call esi
push 2
push dword [0x44769c]
call edi
push dword [ebp - 0x1238]
push ebx
push str.UPDATE_AccountCharacter_SET_GameIDC_s_WHERE_Id_s
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call esi
push 2
push dword [0x44769c]
call edi
jmp 0x40f7bf
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x1214], 0
push 0x1228
lea eax, [ebp - 0x1230]
push eax
push dword [ebp - 0x123c]
call fcn.004182a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004198d7
mov esp, ebp
pop ebp
ret