Function at 0x409d90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2150
call fcn.00437750
mov eax, dword [0x458330]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1fe8], 0
push 0x100f
push 0
lea eax, [ebp - 0x1fe7]
push eax
call fcn.00435470
add esp, 0xc
mov byte [ebp - 0x20f4], 0
xor ecx, ecx
mov dword [ebp - 0x20f3], ecx
mov dword [ebp - 0x20ef], ecx
mov word [ebp - 0x20eb], 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 - 0x20e8], 0
push 0xff
push 0
lea eax, [ebp - 0x20e7]
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 0x1010
push 6
lea eax, [ebp - 0x1fe8]
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 - 0x20f4]
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 - 0x1fe0]
push ecx
call fcn.004360a0
add esp, 0xc
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 0xe
push edx
lea eax, [ebp - 0x1fd6]
push eax
call fcn.004360a0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dx, word [ecx + 0x1a]
mov word [ebp - 0x1fe2], dx
mov byte [ebp - 0x1fe4], 0
lea eax, [ebp - 0xfd4]
push eax
call fcn.00405550
add esp, 4
cmp eax, 1
jne 0x40a4be
lea ecx, [ebp - 0xfd4]
push ecx
call fcn.00405480
add esp, 4
cmp eax, 1
jne 0x40a4be
lea edx, [ebp - 0x20f4]
push edx
lea eax, [ebp - 0xfd4]
push eax
push str.SELECT_cLevel__Class__LevelUpPoint__Experience__Strength__Dexterity__Vitality__Energy__Money__Life__MaxLife__Mana__MaxMana__MapNumber__MapPosX__MapPosY__MapDir__PkCount__PkLevel__PkTime__CtlCode__DbVersion__Leadership__ChatLimitTime__FruitPoint_FROM_Character_WHERE_Name_s_AND_AccountID_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 0x40a4b0
push str.cLevel
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov word [ebp - 0x1fca], ax
push str.Class
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1fcb], al
push str.LevelUpPoint
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1fc8], eax
push str.Experience
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1fc4], eax
push str.Strength
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
cwde
mov dword [ebp - 0x1fb8], eax
push str.Dexterity
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
movsx ecx, ax
mov dword [ebp - 0x1fb4], ecx
push str.Vitality
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
movsx edx, ax
mov dword [ebp - 0x1fb0], edx
push str.Energy
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
cwde
mov dword [ebp - 0x1fac], eax
push str.Money
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1fbc], eax
push str.Life
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407d90
fnstcw word [ebp - 0x2122]
movzx eax, word [ebp - 0x2122]
or eax, 0xc00
mov dword [ebp - 0x2128], eax
fldcw word [ebp - 0x2128]
fistp dword [ebp - 0x212c]
fldcw word [ebp - 0x2122]
mov cx, word [ebp - 0x212c]
mov word [ebp - 0x1fa8], cx
push str.MaxLife
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407d90
fnstcw word [ebp - 0x212e]
movzx eax, word [ebp - 0x212e]
or eax, 0xc00
mov dword [ebp - 0x2134], eax
fldcw word [ebp - 0x2134]
fistp dword [ebp - 0x2138]
fldcw word [ebp - 0x212e]
mov dx, word [ebp - 0x2138]
mov word [ebp - 0x1fa6], dx
push str.Mana
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407d90
fnstcw word [ebp - 0x213a]
movzx eax, word [ebp - 0x213a]
or eax, 0xc00
mov dword [ebp - 0x2140], eax
fldcw word [ebp - 0x2140]
fistp dword [ebp - 0x2144]
fldcw word [ebp - 0x213a]
mov ax, word [ebp - 0x2144]
mov word [ebp - 0x1fa4], ax
push str.MaxMana
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407d90
fnstcw word [ebp - 0x2146]
movzx eax, word [ebp - 0x2146]
or eax, 0xc00
mov dword [ebp - 0x214c], eax
fldcw word [ebp - 0x214c]
fistp dword [ebp - 0x2150]
fldcw word [ebp - 0x2146]
mov cx, word [ebp - 0x2150]
mov word [ebp - 0x1fa2], cx
push str.MapNumber
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x102c], al
push str.MapPosX
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x102b], al
push str.MapPosY
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x102a], al
push str.MapDir
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1029], al
push str.PkCount
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1028], eax
push str.PkLevel
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1024], eax
push str.PkTime
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x1020], eax
push str.CtlCode
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x101c], al
push str.DbVersion
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x101b], al
push str.Leadership
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
movzx edx, ax
mov dword [ebp - 0xfe4], edx
push str.ChatLimitTime
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov word [ebp - 0xfe0], ax
push str.FruitPoint
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0xfdc], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea eax, [ebp - 0xfd4]
push eax
push str.SELECT_Inventory_from_Character_where_Name_s
lea ecx, [ebp - 0x20e8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0xec8]
push edx
lea eax, [ebp - 0x20e8]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407f00
test eax, eax
jg 0x40a304
push 0xec0
push 0xffffffffffffffff
lea ecx, [ebp - 0xec8]
push ecx
call fcn.00435470
add esp, 0xc
push 0xec0
lea edx, [ebp - 0xec8]
push edx
lea eax, [ebp - 0x1fa0]
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_MagicList_from_Character_where_Name_s
lea eax, [ebp - 0x20e8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xec8]
push ecx
lea edx, [ebp - 0x20e8]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407f00
cmp eax, 0xb4
jae 0x40a398
push 0xec0
push 0xffffffffffffffff
lea eax, [ebp - 0xec8]
push eax
call fcn.00435470
add esp, 0xc
push 0xb4
lea ecx, [ebp - 0xec8]
push ecx
lea edx, [ebp - 0x10e0]
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
lea ecx, [ebp - 0xfd4]
push ecx
push str.SELECT_Quest_from_Character_where_Name_s
lea edx, [ebp - 0x20e8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xec8]
push eax
lea ecx, [ebp - 0x20e8]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407f00
cmp eax, 0x32
jae 0x40a42a
push 0xec0
push 0xffffffffffffffff
lea edx, [ebp - 0xec8]
push edx
call fcn.00435470
add esp, 0xc
push 0x32
lea eax, [ebp - 0xec8]
push eax
lea ecx, [ebp - 0x1019]
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
mov byte [ebp - 0x1fe4], 1
lea eax, [ebp - 0x20f4]
push eax
lea ecx, [ebp - 0xfd4]
push ecx
push str.UPDATE_AccountCharacter_SET_GameIDC_s_WHERE_Id_s
mov edx, dword [ebp + 8]
add edx, 0x7dc0
push edx
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 0x40a4be
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
push 0x1010
lea eax, [ebp - 0x1fe8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406820
movzx edx, byte [ebp - 0x1fe4]
cmp edx, 1
jne 0x40a6a9
mov byte [ebp - 0x2120], 0
push 0x2b
push 0
lea eax, [ebp - 0x211f]
push eax
call fcn.00435470
add esp, 0xc
push 0x2c
push 0x60
lea ecx, [ebp - 0x2120]
call fcn.00408ff0
mov ecx, dword [ebp + 0x10]
movsx edx, word [ecx + 0x1a]
mov dword [ebp - 0x211c], edx
lea eax, [ebp - 0xfd4]
push eax
push str.SELECT__FROM_OptionData_WHERE_Name_s
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
push ecx
call fcn.00407950
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
movsx edx, ax
cmp edx, 0x64
je 0x40a660
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 0xe
push eax
lea ecx, [ebp - 0x2118]
push ecx
call fcn.004360a0
add esp, 0xc
push str.GameOption
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x20fa], al
push str.Qkey
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x20f9], al
push str.Wkey
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x20f8], al
push str.Ekey
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x20f7], al
push str.RKey
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x20f5], al
push str.ChatWindow
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x20f6], al
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea edx, [ebp - 0xfd4]
push edx
push str.SELECT_SkillKey_from_OptionData_where_Name_s
lea eax, [ebp - 0x20e8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xfc8]
push ecx
lea edx, [ebp - 0x20e8]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407f00
push 0x14
lea eax, [ebp - 0xfc8]
push eax
lea ecx, [ebp - 0x210e]
push ecx
call fcn.004360a0
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
push 0x2c
lea edx, [ebp - 0x2120]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406820
lea ecx, [ebp - 0x20f4]
push ecx
lea edx, [ebp - 0xfd4]
push edx
mov eax, dword [ebp + 0x10]
movsx ecx, word [eax + 0x1a]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00431b70
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435f91
mov esp, ebp
pop ebp
ret