Function at 0x40ca10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x8f4], ax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x904], edx
lea edx, [ecx + 6]
mov word [ebp - 0x8ea], ax
mov al, byte [edx + 0xa]
push ebx
lea ebx, [ecx + 0x11]
mov byte [ebp - 0x8e8], al
movzx eax, word [ebx + 8]
mov word [ebp - 0x8df], ax
mov al, byte [ebx + 0xa]
movq qword [ebp - 0x8f2], xmm0
movq xmm0, qword [ebx]
mov byte [ebp - 0x8dd], al
xor eax, eax
mov dword [ebp - 0x8f8], 0x4f008c2
mov dword [ebp - 0x900], edx
movq qword [ebp - 0x8e7], xmm0
nop
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x40d11b
cmp cl, 0x22
je 0x40d11b
cmp cl, 0x27
je 0x40d11b
inc eax
cmp eax, 0xb
jl 0x40ca90
push ebx
push edx
push str.SELECT__FROM_Character_WHERE_AccountID_s_AND_Name_s
push 0x442698
mov byte [ebp - 0x8dc], 1
call fcn.00413700
add esp, 0x10
test al, al
je 0x40d11b
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d11b
push str.cLevel
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cb00
or eax, eax
jmp 0x40cb11
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Class
mov word [ebp - 0x8da], ax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cb2b
or eax, eax
jmp 0x40cb3c
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.LevelUpPoint
mov byte [ebp - 0x8db], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cb55
or eax, eax
jmp 0x40cb66
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Experience
mov dword [ebp - 0x8d8], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cb7f
or eax, eax
jmp 0x40cb90
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Strength
mov dword [ebp - 0x8d4], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cba9
or eax, eax
jmp 0x40cbba
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Dexterity
mov dword [ebp - 0x8cc], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cbd3
or eax, eax
jmp 0x40cbe4
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Vitality
mov dword [ebp - 0x8c8], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cbfd
or eax, eax
jmp 0x40cc0e
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Energy
mov dword [ebp - 0x8c4], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cc27
or eax, eax
jmp 0x40cc38
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Leadership
mov dword [ebp - 0x8c0], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cc51
or eax, eax
jmp 0x40cc62
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
mov dword [ebp - 0x8bc], eax
lea eax, [ebp - 0x898]
push 0x6c0
push eax
push str.Inventory
call fcn.00413a10
push 0xb4
lea eax, [ebp - 0x1d8]
push eax
push str.MagicList
call fcn.00413a10
push str.Money
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cca7
or eax, eax
jmp 0x40ccb8
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Life
mov dword [ebp - 0x8d0], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40ccd7
movss xmm0, dword [0x43a3ec]
jmp 0x40ccf6
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0042080f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042f5d0
push str.MaxLife
mov dword [ebp - 0x8b8], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cd1a
movss xmm0, dword [0x43a3ec]
jmp 0x40cd39
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0042080f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042f5d0
push str.Mana
mov dword [ebp - 0x8b4], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cd5d
movss xmm0, dword [0x43a3ec]
jmp 0x40cd7c
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0042080f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042f5d0
push str.MaxMana
mov dword [ebp - 0x8b0], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cda0
movss xmm0, dword [0x43a3ec]
jmp 0x40cdbf
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0042080f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042f5d0
push 0x437eb4
mov dword [ebp - 0x8ac], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cde3
movss xmm0, dword [0x43a3ec]
jmp 0x40ce02
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0042080f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042f5d0
push str.MaxBP
mov dword [ebp - 0x8a8], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40ce26
movss xmm0, dword [0x43a3ec]
jmp 0x40ce45
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0042080f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042f5d0
push str.Shield
mov dword [ebp - 0x8a4], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40ce69
movss xmm0, dword [0x43a3ec]
jmp 0x40ce88
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0042080f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042f5d0
push str.MaxShield
mov dword [ebp - 0x8a0], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40ceac
movss xmm0, dword [0x43a3ec]
jmp 0x40cecb
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0042080f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042f5d0
push str.MapNumber
mov dword [ebp - 0x89c], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cee9
or eax, eax
jmp 0x40cefa
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.MapPosX
mov byte [ebp - 0x124], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cf13
or eax, eax
jmp 0x40cf24
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.MapPosY
mov byte [ebp - 0x123], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cf3d
or eax, eax
jmp 0x40cf4e
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.MapDir
mov byte [ebp - 0x122], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cf67
or eax, eax
jmp 0x40cf78
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.PkCount
mov byte [ebp - 0x121], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cf91
or eax, eax
jmp 0x40cfa2
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.PkLevel
mov dword [ebp - 0x120], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cfbb
or eax, eax
jmp 0x40cfcc
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.PkTime
mov dword [ebp - 0x11c], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40cfe5
or eax, eax
jmp 0x40cff6
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.CtlCode
mov dword [ebp - 0x118], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d00f
or eax, eax
jmp 0x40d020
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x113]
push 0x32
push eax
push str.Quest
call fcn.00413a10
push 0xd0
lea eax, [ebp - 0xdc]
push eax
push str.EffectList
call fcn.00413a10
push str.FruitAddPoint
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d062
or eax, eax
jmp 0x40d073
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.FruitSubPoint
mov word [ebp - 0xe0], ax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d08d
or eax, eax
jmp 0x40d09e
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push 0x5d556c
mov word [ebp - 0xde], ax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d0b8
or eax, eax
jmp 0x40d0c9
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [ebp - 0x900]
push ebx
push str.UPDATE_AccountCharacter_SET_GameIDC_s_WHERE_Id_s
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40d13c
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x8dc], 0
push 0x8f0
lea eax, [ebp - 0x8f8]
push eax
push dword [ebp - 0x904]
call fcn.00414e90
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004163e0
mov esp, ebp
pop ebp
ret