Function at 0x40a6c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21dc
call fcn.00437750
mov eax, dword [0x458330]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x2070], 0
push 0x1097
push 0
lea eax, [ebp - 0x206f]
push eax
call fcn.00435470
add esp, 0xc
mov byte [ebp - 0x217c], 0
xor ecx, ecx
mov dword [ebp - 0x217b], ecx
mov dword [ebp - 0x2177], ecx
mov word [ebp - 0x2173], cx
mov byte [ebp - 0xfd4], 0
xor edx, edx
mov dword [ebp - 0xfd3], edx
mov dword [ebp - 0xfcf], edx
mov word [ebp - 0xfcb], dx
mov byte [ebp - 0x2170], 0
push 0xff
push 0
lea eax, [ebp - 0x216f]
push eax
call fcn.00435470
add esp, 0xc
mov byte [ebp - 0xfc8], 0
push 0xff
push 0
lea ecx, [ebp - 0xfc7]
push ecx
call fcn.00435470
add esp, 0xc
mov byte [ebp - 0xec8], 0
push 0xebf
push 0
lea edx, [ebp - 0xec7]
push edx
call fcn.00435470
add esp, 0xc
push 0x1098
push 6
lea eax, [ebp - 0x2070]
push eax
call fcn.00405450
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xe
push ecx
call fcn.004053b0
add esp, 8
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
lea eax, [ebp - 0x217c]
push eax
call fcn.004360a0
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xe
push ecx
lea edx, [ebp - 0xfd4]
push edx
call fcn.004360a0
add esp, 0xc
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 3
push eax
lea ecx, [ebp - 0x2068]
push ecx
call fcn.004360a0
add esp, 0xc
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 0xe
push edx
lea eax, [ebp - 0x205e]
push eax
call fcn.004360a0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dx, word [ecx + 0x1a]
mov word [ebp - 0x206a], dx
mov byte [ebp - 0x206c], 0
lea eax, [ebp - 0xfd4]
push eax
call fcn.00405550
add esp, 4
cmp eax, 1
jne 0x40b0ca
lea ecx, [ebp - 0xfd4]
push ecx
call fcn.00405480
add esp, 4
cmp eax, 1
jne 0x40b0ca
lea edx, [ebp - 0xfd4]
push edx
lea eax, [ebp - 0x217c]
push eax
push str.EXEC_Wf_GetCharacterInfo__s___s
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
push ecx
call fcn.00407950
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
movsx edx, ax
cmp edx, 0x64
je 0x40b0bc
push str.cLevel
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov word [ebp - 0x2052], ax
push str.Class
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x2053], al
push str.LevelUpPoint
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x2050], eax
push str.Experience
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x204c], eax
push str.Strength
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x2040], eax
push str.Dexterity
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x203c], eax
push str.Vitality
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x2038], eax
push str.Energy
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x2034], eax
push str.Money
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x2044], eax
push str.Life
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407d90
fnstcw word [ebp - 0x21ae]
movzx eax, word [ebp - 0x21ae]
or eax, 0xc00
mov dword [ebp - 0x21b4], eax
fldcw word [ebp - 0x21b4]
fistp dword [ebp - 0x21b8]
fldcw word [ebp - 0x21ae]
mov ax, word [ebp - 0x21b8]
mov word [ebp - 0x2030], ax
push str.MaxLife
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407d90
fnstcw word [ebp - 0x21ba]
movzx eax, word [ebp - 0x21ba]
or eax, 0xc00
mov dword [ebp - 0x21c0], eax
fldcw word [ebp - 0x21c0]
fistp dword [ebp - 0x21c4]
fldcw word [ebp - 0x21ba]
mov cx, word [ebp - 0x21c4]
mov word [ebp - 0x202e], cx
push str.Mana
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407d90
fnstcw word [ebp - 0x21c6]
movzx eax, word [ebp - 0x21c6]
or eax, 0xc00
mov dword [ebp - 0x21cc], eax
fldcw word [ebp - 0x21cc]
fistp dword [ebp - 0x21d0]
fldcw word [ebp - 0x21c6]
mov dx, word [ebp - 0x21d0]
mov word [ebp - 0x202c], dx
push str.MaxMana
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407d90
fnstcw word [ebp - 0x21d2]
movzx eax, word [ebp - 0x21d2]
or eax, 0xc00
mov dword [ebp - 0x21d8], eax
fldcw word [ebp - 0x21d8]
fistp dword [ebp - 0x21dc]
fldcw word [ebp - 0x21d2]
mov ax, word [ebp - 0x21dc]
mov word [ebp - 0x202a], ax
push str.MapNumber
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x10b4], al
push str.MapPosX
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x10b3], al
push str.MapPosY
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x10b2], al
push str.MapDir
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x10b1], al
push str.PkCount
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x10b0], eax
push str.PkLevel
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x10ac], eax
push str.PkTime
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x10a8], eax
push str.CtlCode
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x10a4], al
push str.DbVersion
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x10a3], al
push str.Leadership
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x106c], eax
push str.ChatLimitTime
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov word [ebp - 0x1068], ax
push str.FruitPointStr
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1064], eax
push str.FruitPointAgi
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x105c], eax
push str.FruitPointVit
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1058], eax
push str.FruitPointEne
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1054], eax
push str.FruitPointCmd
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1050], eax
push str.SCFExtInventory
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1060], al
push str.SCFUpdatedPShop
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x105f], al
push str.SCFMasterLevel
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x104c], eax
push str.SCFMasterPoints
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1048], eax
push str.SCFMasterExperience
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407d40
mov dword [ebp - 0x1040], eax
mov dword [ebp - 0x103c], edx
push str.RankTitle1
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1034], eax
push str.RankTitle2
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1030], eax
push str.RankTitle3
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x102c], eax
push str.BlueEventPoints
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0xfe4], eax
push str.SummerEventPoints
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0xfe0], eax
push 0x459828
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1038], eax
push 0x459846
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0xffc], eax
push 0x459864
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1028], eax
push 0x459882
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0xff8], eax
push 0x4598a0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1004], eax
push 0x4598be
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1000], eax
push str.SCFPCPoints
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1024], eax
push str.SCFMarried
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
movzx ecx, al
mov dword [ebp - 0x1020], ecx
lea edx, [ebp - 0x101c]
push edx
push str.SCFMarryHusbandWife
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407ca0
push str.SCFGensFamily
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1011], al
push str.SCFGensContribution
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1010], eax
push str.SCFGensRank
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x100c], eax
push str.SCFGensRecvReward
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1007], al
push str.SCFGensDD
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x2180], eax
cmp dword [ebp - 0x2180], 0
je 0x40aea1
cmp dword [ebp - 0x2180], 4
jle 0x40aea3
jmp 0x40aeaa
mov byte [ebp - 0x1008], 1
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea eax, [ebp - 0xfd4]
push eax
lea ecx, [ebp - 0x217c]
push ecx
push str.SELECT_Inventory_from_Character_where_AccountID_s_AND_Name_s
lea edx, [ebp - 0x2170]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xec8]
push eax
lea ecx, [ebp - 0x2170]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407f00
test eax, eax
jg 0x40af11
push 0xec0
push 0xffffffffffffffff
lea edx, [ebp - 0xec8]
push edx
call fcn.00435470
add esp, 0xc
push 0xec0
lea eax, [ebp - 0xec8]
push eax
lea ecx, [ebp - 0x2028]
push ecx
call fcn.004360a0
add esp, 0xc
push 0xec0
push 0
lea edx, [ebp - 0xec8]
push edx
call fcn.00435470
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea eax, [ebp - 0xfd4]
push eax
push str.SELECT_MagicList_from_Character_where_Name_s
lea ecx, [ebp - 0x2170]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0xec8]
push edx
lea eax, [ebp - 0x2170]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407f00
cmp eax, 0xb4
jae 0x40afa5
push 0xec0
push 0xffffffffffffffff
lea ecx, [ebp - 0xec8]
push ecx
call fcn.00435470
add esp, 0xc
push 0xb4
lea edx, [ebp - 0xec8]
push edx
lea eax, [ebp - 0x1168]
push eax
call fcn.004360a0
add esp, 0xc
push 0xec0
push 0
lea ecx, [ebp - 0xec8]
push ecx
call fcn.00435470
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea edx, [ebp - 0xfd4]
push edx
push str.SELECT_Quest_from_Character_where_Name_s
lea eax, [ebp - 0x2170]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xec8]
push ecx
lea edx, [ebp - 0x2170]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407f00
cmp eax, 0x32
jae 0x40b037
push 0xec0
push 0xffffffffffffffff
lea eax, [ebp - 0xec8]
push eax
call fcn.00435470
add esp, 0xc
push 0x32
lea ecx, [ebp - 0xec8]
push ecx
lea edx, [ebp - 0x10a1]
push edx
call fcn.004360a0
add esp, 0xc
push 0xec0
push 0
lea eax, [ebp - 0xec8]
push eax
call fcn.00435470
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
mov byte [ebp - 0x206c], 1
lea ecx, [ebp - 0x217c]
push ecx
lea edx, [ebp - 0xfd4]
push edx
push str.UPDATE_AccountCharacter_SET_GameIDC_s_WHERE_Id_s
mov eax, dword [ebp + 8]
add eax, 0x7dc0
push eax
call fcn.00407950
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
jmp 0x40b0ca
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
push 0x1098
lea ecx, [ebp - 0x2070]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406820
movzx eax, byte [ebp - 0x206c]
cmp eax, 1
jne 0x40b28d
mov byte [ebp - 0x21ac], 0
push 0x2b
push 0
lea ecx, [ebp - 0x21ab]
push ecx
call fcn.00435470
add esp, 0xc
push 0x2c
push 0x60
lea ecx, [ebp - 0x21ac]
call fcn.00408ff0
mov edx, dword [ebp + 0x10]
movsx eax, word [edx + 0x1a]
mov dword [ebp - 0x21a8], eax
lea ecx, [ebp - 0xfd4]
push ecx
push str.SELECT__FROM_OptionData_WHERE_Name_s
mov edx, dword [ebp + 8]
add edx, 0x7dc0
push edx
call fcn.00407950
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
cwde
cmp eax, 0x64
je 0x40b26a
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xe
push ecx
lea edx, [ebp - 0x21a4]
push edx
call fcn.004360a0
add esp, 0xc
push str.GameOption
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x2186], al
push str.QKey
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x2185], al
push str.WKey
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x2184], al
push str.EKey
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x2183], al
push str.RKey
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x2181], al
push str.ChatWindow
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x2182], al
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea eax, [ebp - 0xfd4]
push eax
push str.SELECT_SkillKey_from_OptionData_where_Name_s
lea ecx, [ebp - 0x2170]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0xfc8]
push edx
lea eax, [ebp - 0x2170]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407f00
push 0x14
lea ecx, [ebp - 0xfc8]
push ecx
lea edx, [ebp - 0x219a]
push edx
call fcn.004360a0
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
push 0x2c
lea eax, [ebp - 0x21ac]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406820
mov edx, dword [ebp + 0x10]
movsx eax, word [edx + 0x1a]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00431fa0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435f91
mov esp, ebp
pop ebp
ret