Function at 0x40b470
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x439008]
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 0x40baf5
cmp cl, 0x22
je 0x40baf5
cmp cl, 0x27
je 0x40baf5
inc eax
cmp eax, 0xb
jl 0x40b4f0
push ebx
push edx
push str.SELECT__FROM_Character_WHERE_AccountID_s_AND_Name_s
push 0x439d58
mov byte [ebp - 0x8dc], 1
call fcn.004112b0
add esp, 0x10
test al, al
je 0x40baf5
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40baf5
push str.cLevel
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b560
or eax, eax
jmp 0x40b571
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.Class
mov word [ebp - 0x8da], ax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b58b
or eax, eax
jmp 0x40b59c
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.LevelUpPoint
mov byte [ebp - 0x8db], al
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b5b5
or eax, eax
jmp 0x40b5c6
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.Experience
mov dword [ebp - 0x8d8], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b5df
or eax, eax
jmp 0x40b5f0
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.Strength
mov dword [ebp - 0x8d4], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b609
or eax, eax
jmp 0x40b61a
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.Dexterity
mov dword [ebp - 0x8cc], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b633
or eax, eax
jmp 0x40b644
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.Vitality
mov dword [ebp - 0x8c8], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b65d
or eax, eax
jmp 0x40b66e
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.Energy
mov dword [ebp - 0x8c4], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b687
or eax, eax
jmp 0x40b698
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.Leadership
mov dword [ebp - 0x8c0], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b6b1
or eax, eax
jmp 0x40b6c2
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov dword [ebp - 0x8bc], eax
lea eax, [ebp - 0x898]
push 0x6c0
push eax
push str.Inventory
call fcn.00411550
push 0xb4
lea eax, [ebp - 0x1d8]
push eax
push str.MagicList
call fcn.00411550
push str.Money
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b707
or eax, eax
jmp 0x40b718
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.Life
mov dword [ebp - 0x8d0], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b737
movss xmm0, dword [0x43626c]
jmp 0x40b756
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041d86f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042b810
push str.MaxLife
mov dword [ebp - 0x8b8], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b77a
movss xmm0, dword [0x43626c]
jmp 0x40b799
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041d86f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042b810
push str.Mana
mov dword [ebp - 0x8b4], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b7bd
movss xmm0, dword [0x43626c]
jmp 0x40b7dc
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041d86f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042b810
push str.MaxMana
mov dword [ebp - 0x8b0], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b800
movss xmm0, dword [0x43626c]
jmp 0x40b81f
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041d86f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042b810
push 0x433f34
mov dword [ebp - 0x8ac], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b843
movss xmm0, dword [0x43626c]
jmp 0x40b862
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041d86f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042b810
push str.MaxBP
mov dword [ebp - 0x8a8], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b886
movss xmm0, dword [0x43626c]
jmp 0x40b8a5
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041d86f
fstp dword [ebp - 0x8fc]
movss xmm0, dword [ebp - 0x8fc]
add esp, 4
call fcn.0042b810
push str.MapNumber
mov dword [ebp - 0x8a4], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b8c3
or eax, eax
jmp 0x40b8d4
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.MapPosX
mov byte [ebp - 0x124], al
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b8ed
or eax, eax
jmp 0x40b8fe
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.MapPosY
mov byte [ebp - 0x123], al
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b917
or eax, eax
jmp 0x40b928
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.MapDir
mov byte [ebp - 0x122], al
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b941
or eax, eax
jmp 0x40b952
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.PkCount
mov byte [ebp - 0x121], al
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b96b
or eax, eax
jmp 0x40b97c
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.PkLevel
mov dword [ebp - 0x120], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b995
or eax, eax
jmp 0x40b9a6
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.PkTime
mov dword [ebp - 0x11c], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b9bf
or eax, eax
jmp 0x40b9d0
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.CtlCode
mov dword [ebp - 0x118], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40b9e9
or eax, eax
jmp 0x40b9fa
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x113]
push 0x32
push eax
push str.Quest
call fcn.00411550
push 0xd0
lea eax, [ebp - 0xdc]
push eax
push str.EffectList
call fcn.00411550
push str.FruitAddPoint
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40ba3c
or eax, eax
jmp 0x40ba4d
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.FruitSubPoint
mov word [ebp - 0xe0], ax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40ba67
or eax, eax
jmp 0x40ba78
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push 0x5cd67c
mov word [ebp - 0xde], ax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40ba92
or eax, eax
jmp 0x40baa3
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [ebp - 0x900]
push ebx
push str.UPDATE_AccountCharacter_SET_GameIDC_s_WHERE_Id_s
push 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40bb16
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
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.00412cb0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00414177
mov esp, ebp
pop ebp
ret