Function at 0x40aab0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2148
call fcn.004357f0
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1fe0], 0
push 0x1003
push 0
lea eax, [ebp - 0x1fdf]
push eax
call fcn.00433530
add esp, 0xc
mov byte [ebp - 0x20ec], 0
xor ecx, ecx
mov dword [ebp - 0x20eb], ecx
mov dword [ebp - 0x20e7], ecx
mov word [ebp - 0x20e3], 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 - 0x20e0], 0
push 0xff
push 0
lea eax, [ebp - 0x20df]
push eax
call fcn.00433530
add esp, 0xc
mov byte [ebp - 0xfc8], 0
push 0xff
push 0
lea ecx, [ebp - 0xfc7]
push ecx
call fcn.00433530
add esp, 0xc
mov byte [ebp - 0xec8], 0
push 0xebf
push 0
lea edx, [ebp - 0xec7]
push edx
call fcn.00433530
add esp, 0xc
push 0x1004
push 6
lea eax, [ebp - 0x1fe0]
push eax
call fcn.00406330
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xe
push ecx
call fcn.00406290
add esp, 8
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
lea eax, [ebp - 0x20ec]
push eax
call fcn.00434160
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xe
push ecx
lea edx, [ebp - 0xfd4]
push edx
call fcn.00434160
add esp, 0xc
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 3
push eax
lea ecx, [ebp - 0x1fd8]
push ecx
call fcn.00434160
add esp, 0xc
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 0xe
push edx
lea eax, [ebp - 0x1fce]
push eax
call fcn.00434160
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dx, word [ecx + 0x1a]
mov word [ebp - 0x1fda], dx
mov byte [ebp - 0x1fdc], 0
lea eax, [ebp - 0xfd4]
push eax
call fcn.004063d0
add esp, 4
cmp eax, 1
jne 0x40b1d7
lea ecx, [ebp - 0xfd4]
push ecx
call fcn.00406360
add esp, 4
cmp eax, 1
jne 0x40b1d7
lea edx, [ebp - 0x20ec]
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, 0x7d80
push ecx
call fcn.00408880
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
movsx edx, ax
cmp edx, 0x64
je 0x40b1c9
push str.cLevel
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0x1fc2], ax
push str.Class
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x1fc3], al
push str.LevelUpPoint
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x1fc0], eax
push str.Experience
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x1fbc], eax
push str.Strength
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0x1fb0], ax
push str.Dexterity
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0x1fae], ax
push str.Vitality
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0x1fac], ax
push str.Energy
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0x1faa], ax
push str.Money
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x1fb4], eax
push str.Life
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408cb0
fnstcw word [ebp - 0x211a]
movzx eax, word [ebp - 0x211a]
or eax, 0xc00
mov dword [ebp - 0x2120], eax
fldcw word [ebp - 0x2120]
fistp dword [ebp - 0x2124]
fldcw word [ebp - 0x211a]
mov ax, word [ebp - 0x2124]
mov word [ebp - 0x1fa8], ax
push str.MaxLife
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408cb0
fnstcw word [ebp - 0x2126]
movzx eax, word [ebp - 0x2126]
or eax, 0xc00
mov dword [ebp - 0x212c], eax
fldcw word [ebp - 0x212c]
fistp dword [ebp - 0x2130]
fldcw word [ebp - 0x2126]
mov cx, word [ebp - 0x2130]
mov word [ebp - 0x1fa6], cx
push str.Mana
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408cb0
fnstcw word [ebp - 0x2132]
movzx eax, word [ebp - 0x2132]
or eax, 0xc00
mov dword [ebp - 0x2138], eax
fldcw word [ebp - 0x2138]
fistp dword [ebp - 0x213c]
fldcw word [ebp - 0x2132]
mov dx, word [ebp - 0x213c]
mov word [ebp - 0x1fa4], dx
push str.MaxMana
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408cb0
fnstcw word [ebp - 0x213e]
movzx eax, word [ebp - 0x213e]
or eax, 0xc00
mov dword [ebp - 0x2144], eax
fldcw word [ebp - 0x2144]
fistp dword [ebp - 0x2148]
fldcw word [ebp - 0x213e]
mov ax, word [ebp - 0x2148]
mov word [ebp - 0x1fa2], ax
push str.MapNumber
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x102c], al
push str.MapPosX
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x102b], al
push str.MapPosY
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x102a], al
push str.MapDir
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x1029], al
push str.PkCount
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x1028], eax
push str.PkLevel
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x1024], eax
push str.PkTime
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x1020], eax
push str.CtlCode
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x101c], al
push str.DbVersion
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x101b], al
push str.Leadership
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0xfe6], ax
push str.ChatLimitTime
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0xfe4], ax
push str.FruitPoint
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0xfe0], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea ecx, [ebp - 0xfd4]
push ecx
push str.SELECT_Inventory_from_Character_where_Name_s
lea edx, [ebp - 0x20e0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xec8]
push eax
lea ecx, [ebp - 0x20e0]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408e20
test eax, eax
jg 0x40b01e
push 0xec0
push 0xffffffffffffffff
lea edx, [ebp - 0xec8]
push edx
call fcn.00433530
add esp, 0xc
push 0xec0
lea eax, [ebp - 0xec8]
push eax
lea ecx, [ebp - 0x1fa0]
push ecx
call fcn.00434160
add esp, 0xc
push 0xec0
push 0
lea edx, [ebp - 0xec8]
push edx
call fcn.00433530
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea eax, [ebp - 0xfd4]
push eax
push str.SELECT_MagicList_from_Character_where_Name_s
lea ecx, [ebp - 0x20e0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0xec8]
push edx
lea eax, [ebp - 0x20e0]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408e20
cmp eax, 0xb4
jae 0x40b0b2
push 0xec0
push 0xffffffffffffffff
lea ecx, [ebp - 0xec8]
push ecx
call fcn.00433530
add esp, 0xc
push 0xb4
lea edx, [ebp - 0xec8]
push edx
lea eax, [ebp - 0x10e0]
push eax
call fcn.00434160
add esp, 0xc
push 0xec0
push 0
lea ecx, [ebp - 0xec8]
push ecx
call fcn.00433530
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea edx, [ebp - 0xfd4]
push edx
push str.SELECT_Quest_from_Character_where_Name_s
lea eax, [ebp - 0x20e0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xec8]
push ecx
lea edx, [ebp - 0x20e0]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408e20
cmp eax, 0x32
jae 0x40b144
push 0xec0
push 0xffffffffffffffff
lea eax, [ebp - 0xec8]
push eax
call fcn.00433530
add esp, 0xc
push 0x32
lea ecx, [ebp - 0xec8]
push ecx
lea edx, [ebp - 0x1019]
push edx
call fcn.00434160
add esp, 0xc
push 0xec0
push 0
lea eax, [ebp - 0xec8]
push eax
call fcn.00433530
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov byte [ebp - 0x1fdc], 1
lea ecx, [ebp - 0x20ec]
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, 0x7d80
push eax
call fcn.00408880
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
jmp 0x40b1d7
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0x1004
lea ecx, [ebp - 0x1fe0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407670
movzx eax, byte [ebp - 0x1fdc]
cmp eax, 1
jne 0x40b3c0
mov byte [ebp - 0x2118], 0
push 0x2b
push 0
lea ecx, [ebp - 0x2117]
push ecx
call fcn.00433530
add esp, 0xc
push 0x2c
push 0x60
lea ecx, [ebp - 0x2118]
call fcn.00409d80
mov edx, dword [ebp + 0x10]
movsx eax, word [edx + 0x1a]
mov dword [ebp - 0x2114], eax
lea ecx, [ebp - 0xfd4]
push ecx
push str.SELECT__FROM_OptionData_WHERE_Name_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
je 0x40b377
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xe
push ecx
lea edx, [ebp - 0x2110]
push edx
call fcn.00434160
add esp, 0xc
push str.GameOption
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x20f2], al
push str.Qkey
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x20f1], al
push str.Wkey
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x20f0], al
push str.Ekey
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x20ef], al
push str.RKey
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x20ed], al
push str.ChatWindow
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x20ee], al
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea eax, [ebp - 0xfd4]
push eax
push str.SELECT_SkillKey_from_OptionData_where_Name_s
lea ecx, [ebp - 0x20e0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0xfc8]
push edx
lea eax, [ebp - 0x20e0]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408e20
push 0x14
lea ecx, [ebp - 0xfc8]
push ecx
lea edx, [ebp - 0x2106]
push edx
call fcn.00434160
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0x2c
lea eax, [ebp - 0x2118]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407670
lea edx, [ebp - 0x20ec]
push edx
lea eax, [ebp - 0xfd4]
push eax
mov ecx, dword [ebp + 0x10]
movsx edx, word [ecx + 0x1a]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004302f0
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret