Function at 0x40c360
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x111c
call fcn.0041b840
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
push ebx
mov word [ebp - 0x1104], cx
mov ecx, dword [eax + 0xa]
push esi
lea esi, [eax + 6]
mov dword [ebp - 0x10fe], ecx
movzx ecx, byte [esi + 0xa]
mov dword [ebp - 0x1102], edx
mov dx, word [esi + 8]
mov word [ebp - 0x10fa], dx
lea edx, [eax + 0x11]
mov eax, dword [edx]
mov byte [ebp - 0x10f8], cl
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10f3], ecx
movzx ecx, byte [edx + 0xa]
mov dword [ebp - 0x10f7], eax
mov ax, word [edx + 8]
mov byte [ebp - 0x10ed], cl
mov dword [ebp - 0x1108], 0x40411c2
mov dword [ebp - 0x1118], esi
mov dword [ebp - 0x111c], edx
mov word [ebp - 0x10ef], ax
xor ecx, ecx
mov al, byte [edx + ecx]
cmp al, 0x20
je 0x40c469
cmp al, 0x22
je 0x40c469
cmp al, 0x27
je 0x40c469
inc ecx
cmp ecx, 0xb
jl 0x40c3f2
mov al, 1
test al, al
setne al
mov byte [ebp - 0x10ec], al
test al, al
je 0x40cdf9
push edx
push esi
push str.SELECT__FROM_Character_WHERE_AccountID_s_AND_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
test al, al
je 0x40cdf9
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40cdf9
push str.cLevel
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x40c46d
or eax, 0xffffffff
jmp 0x40c47b
xor al, al
jmp 0x40c409
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Class
mov word [ebp - 0x10ea], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c495
or eax, eax
jmp 0x40c4a3
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.LevelUpPoint
mov byte [ebp - 0x10eb], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c4bc
or eax, eax
jmp 0x40c4ca
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Experience
mov dword [ebp - 0x10e8], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c4e3
or eax, eax
jmp 0x40c4f1
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Strength
mov dword [ebp - 0x10e4], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c50a
or eax, eax
jmp 0x40c518
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Dexterity
mov dword [ebp - 0x10dc], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c531
or eax, eax
jmp 0x40c53f
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Vitality
mov dword [ebp - 0x10d8], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c558
or eax, eax
jmp 0x40c566
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Energy
mov dword [ebp - 0x10d4], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c57f
or eax, eax
jmp 0x40c58d
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Leadership
mov dword [ebp - 0x10d0], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c5a6
or eax, eax
jmp 0x40c5b4
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push edi
push str.Inventory
mov dword [ebp - 0x10cc], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c5e2
push 0xec0
lea eax, [ebp - 0x10a8]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x40c5fb
shl eax, 0xd
add eax, 0x425b0e
push eax
mov ebx, 0xec0
lea edi, [ebp - 0x10a8]
call fcn.00417ab0
push str.MagicList
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c622
push 0xb4
lea ecx, [ebp - 0x1e8]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x40c63b
shl eax, 0xd
add eax, 0x425b0e
push eax
mov ebx, 0xb4
lea edi, [ebp - 0x1e8]
call fcn.00417ab0
push str.Money
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c64e
or eax, eax
jmp 0x40c65c
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Life
mov dword [ebp - 0x10e0], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c67f
fld dword [0x421d58]
fstp dword [ebp - 0x110c]
jmp 0x40c697
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x110c]
add esp, 4
fld dword [ebp - 0x110c]
push str.MaxLife
fnstcw word [ebp - 0x110a]
movzx eax, word [ebp - 0x110a]
or eax, 0xc00
mov dword [ebp - 0x1110], eax
fldcw word [ebp - 0x1110]
fistp qword [ebp - 0x1114]
mov edx, dword [ebp - 0x1114]
mov dword [ebp - 0x10c8], edx
fldcw word [ebp - 0x110a]
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c6f0
fld dword [0x421d58]
fstp dword [ebp - 0x110c]
jmp 0x40c708
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x110c]
add esp, 4
fld dword [ebp - 0x110c]
push str.Mana
fnstcw word [ebp - 0x110a]
movzx eax, word [ebp - 0x110a]
or eax, 0xc00
mov dword [ebp - 0x1110], eax
fldcw word [ebp - 0x1110]
fistp qword [ebp - 0x1114]
mov eax, dword [ebp - 0x1114]
mov dword [ebp - 0x10c4], eax
fldcw word [ebp - 0x110a]
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c761
fld dword [0x421d58]
fstp dword [ebp - 0x110c]
jmp 0x40c779
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x110c]
add esp, 4
fld dword [ebp - 0x110c]
push str.MaxMana
fnstcw word [ebp - 0x110a]
movzx eax, word [ebp - 0x110a]
or eax, 0xc00
mov dword [ebp - 0x1110], eax
fldcw word [ebp - 0x1110]
fistp qword [ebp - 0x1114]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x10c0], ecx
fldcw word [ebp - 0x110a]
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c7d2
fld dword [0x421d58]
fstp dword [ebp - 0x110c]
jmp 0x40c7ea
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x110c]
add esp, 4
fld dword [ebp - 0x110c]
push 0x41eeb0
fnstcw word [ebp - 0x110a]
movzx eax, word [ebp - 0x110a]
or eax, 0xc00
mov dword [ebp - 0x1110], eax
fldcw word [ebp - 0x1110]
fistp qword [ebp - 0x1114]
mov edx, dword [ebp - 0x1114]
mov dword [ebp - 0x10bc], edx
fldcw word [ebp - 0x110a]
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c843
fld dword [0x421d58]
fstp dword [ebp - 0x110c]
jmp 0x40c85b
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x110c]
add esp, 4
fld dword [ebp - 0x110c]
push str.MaxBP
fnstcw word [ebp - 0x110a]
movzx eax, word [ebp - 0x110a]
or eax, 0xc00
mov dword [ebp - 0x1110], eax
fldcw word [ebp - 0x1110]
fistp qword [ebp - 0x1114]
mov eax, dword [ebp - 0x1114]
mov dword [ebp - 0x10b8], eax
fldcw word [ebp - 0x110a]
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c8b4
fld dword [0x421d58]
fstp dword [ebp - 0x110c]
jmp 0x40c8cc
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x110c]
add esp, 4
fld dword [ebp - 0x110c]
push str.Shield
fnstcw word [ebp - 0x110a]
movzx eax, word [ebp - 0x110a]
or eax, 0xc00
mov dword [ebp - 0x1110], eax
fldcw word [ebp - 0x1110]
fistp qword [ebp - 0x1114]
mov ecx, dword [ebp - 0x1114]
mov dword [ebp - 0x10b4], ecx
fldcw word [ebp - 0x110a]
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c925
fld dword [0x421d58]
fstp dword [ebp - 0x110c]
jmp 0x40c93d
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x110c]
add esp, 4
fld dword [ebp - 0x110c]
push str.MaxShield
fnstcw word [ebp - 0x110a]
movzx eax, word [ebp - 0x110a]
or eax, 0xc00
mov dword [ebp - 0x1110], eax
fldcw word [ebp - 0x1110]
fistp qword [ebp - 0x1114]
mov edx, dword [ebp - 0x1114]
mov dword [ebp - 0x10b0], edx
fldcw word [ebp - 0x110a]
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c996
fld dword [0x421d58]
fstp dword [ebp - 0x110c]
jmp 0x40c9ae
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x110c]
add esp, 4
fld dword [ebp - 0x110c]
push str.MapNumber
fnstcw word [ebp - 0x110a]
movzx eax, word [ebp - 0x110a]
or eax, 0xc00
mov dword [ebp - 0x1110], eax
fldcw word [ebp - 0x1110]
fistp qword [ebp - 0x1114]
mov eax, dword [ebp - 0x1114]
mov dword [ebp - 0x10ac], eax
fldcw word [ebp - 0x110a]
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40c9fd
or eax, eax
jmp 0x40ca0b
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MapPosX
mov byte [ebp - 0x134], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40ca24
or eax, eax
jmp 0x40ca32
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MapPosY
mov byte [ebp - 0x133], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40ca4b
or eax, eax
jmp 0x40ca59
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MapDir
mov byte [ebp - 0x132], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40ca72
or eax, eax
jmp 0x40ca80
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.PkCount
mov byte [ebp - 0x131], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40ca99
or eax, eax
jmp 0x40caa7
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.PkLevel
mov dword [ebp - 0x130], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cac0
or eax, eax
jmp 0x40cace
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.PkTime
mov dword [ebp - 0x12c], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cae7
or eax, eax
jmp 0x40caf5
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.CtlCode
mov dword [ebp - 0x128], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cb0e
or eax, eax
jmp 0x40cb1c
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Quest
mov byte [ebp - 0x124], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cb46
push 0x32
lea ecx, [ebp - 0x123]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x40cb5f
shl eax, 0xd
add eax, 0x425b0e
push eax
mov ebx, 0x32
lea edi, [ebp - 0x123]
call fcn.00417ab0
push str.EffectList
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cb86
push 0xd0
lea edx, [ebp - 0xec]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x40cb9f
shl eax, 0xd
add eax, 0x425b0e
push eax
mov ebx, 0xd0
lea edi, [ebp - 0xec]
call fcn.00417ab0
push str.FruitAddPoint
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cbb2
or eax, eax
jmp 0x40cbc0
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.FruitSubPoint
mov word [ebp - 0xf0], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cbda
or eax, eax
jmp 0x40cbe8
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Kills
mov word [ebp - 0xee], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cc02
or eax, eax
jmp 0x40cc10
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Deads
mov dword [ebp - 0x10], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cc26
or eax, eax
jmp 0x40cc34
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.TheGift
mov dword [ebp - 0xc], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cc4a
or eax, eax
jmp 0x40cc58
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.ExtInventory
mov byte [ebp - 8], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cc6e
or eax, eax
jmp 0x40cc7c
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov byte [ebp - 0x1c], al
mov eax, dword [0x424eec]
push eax
call edi
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
mov edx, dword [ebp - 0x1118]
push edx
push str.SELECT_ExtWarehouse_FROM_AccountCharacter_WHERE_Id_s
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 8
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.ExtWarehouse
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40ccd6
or eax, eax
jmp 0x40cce4
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov ecx, dword [0x424eec]
push ecx
mov byte [ebp - 0x1b], al
call edi
mov edx, dword [0x424eec]
push 2
push edx
call ebx
mov eax, dword [ebp - 0x111c]
mov ecx, dword [ebp - 0x1118]
push eax
push ecx
push str.EXEC_WZ_GetResetInfo__s__s
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0xc
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Reset
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cd3b
or eax, eax
jmp 0x40cd49
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [0x424eec]
push eax
call edi
mov ecx, dword [0x424eec]
push 2
push ecx
call ebx
mov edx, dword [ebp - 0x111c]
mov eax, dword [ebp - 0x1118]
push edx
push eax
push str.EXEC_WZ_GetMasterResetInfo__s__s
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0xc
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.MasterReset
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40cd9f
or eax, eax
jmp 0x40cdad
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov edx, dword [0x424eec]
push edx
mov dword [ebp - 0x14], eax
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
mov ecx, dword [ebp - 0x1118]
mov edx, dword [ebp - 0x111c]
push ecx
push edx
push str.UPDATE_AccountCharacter_SET_GameIDC_s_WHERE_Id_s
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0xc
push eax
call edi
mov ecx, dword [0x424eec]
push 2
push ecx
call ebx
pop edi
jmp 0x40ce1b
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x10ec], 0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1108]
push ecx
push edx
mov ebx, 0x1104
call fcn.004198e0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret