Function at 0x409c90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x112c
call fcn.004187e0
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
push ebx
push esi
mov word [ebp - 0x111c], cx
mov ecx, dword [eax + 0xa]
push edi
lea edi, [eax + 6]
mov dword [ebp - 0x111a], edx
mov dx, word [edi + 8]
mov dword [ebp - 0x1116], ecx
mov cl, byte [edi + 0xa]
lea esi, [eax + 0x11]
mov eax, dword [esi + 4]
mov word [ebp - 0x1112], dx
mov edx, dword [esi]
mov byte [ebp - 0x1110], cl
movzx ecx, word [esi + 8]
mov dword [ebp - 0x110f], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 0x1107], cx
mov dword [ebp - 0x1120], 0x41c11c2
mov dword [ebp - 0x110b], eax
mov byte [ebp - 0x1105], dl
xor ecx, ecx
mov al, byte [esi + ecx]
cmp al, 0x20
je 0x40a345
cmp al, 0x22
je 0x40a345
cmp al, 0x27
je 0x40a345
inc ecx
cmp ecx, 0xb
jl 0x409d15
mov al, 1
test al, al
setne al
mov byte [ebp - 0x1104], al
test al, al
je 0x40a34c
push esi
push edi
push str.SELECT__FROM_Character_WHERE_AccountID_s_AND_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 0xc
test al, al
je 0x40a34c
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a34c
push str.cLevel
mov ebx, 0x4ed8c0
call fcn.00415000
push str.Class
mov word [ebp - 0x1102], ax
call fcn.00415000
push str.LevelUpPoint
mov byte [ebp - 0x1103], al
call fcn.00415000
push str.Experience
mov dword [ebp - 0x1100], eax
call fcn.00415000
push str.Strength
mov dword [ebp - 0x10fc], eax
call fcn.00415000
push str.Dexterity
mov dword [ebp - 0x10f4], eax
call fcn.00415000
push str.Vitality
mov dword [ebp - 0x10f0], eax
call fcn.00415000
push str.Energy
mov dword [ebp - 0x10ec], eax
call fcn.00415000
push str.Leadership
mov dword [ebp - 0x10e8], eax
call fcn.00415000
push 0xec0
lea ecx, [ebp - 0x10c0]
push ecx
push str.Inventory
mov dword [ebp - 0x10e4], eax
call fcn.00415200
push 0xb4
lea edx, [ebp - 0x200]
push edx
push str.MagicList
call fcn.00415200
push str.Money
call fcn.00415000
push str.Life
mov dword [ebp - 0x10f8], eax
call fcn.00415070
fnstcw word [ebp - 0x1122]
movzx eax, word [ebp - 0x1122]
or eax, 0xc00
mov dword [ebp - 0x1128], eax
push str.MaxLife
fldcw word [ebp - 0x1128]
fistp qword [ebp - 0x112c]
mov eax, dword [ebp - 0x112c]
mov dword [ebp - 0x10e0], eax
fldcw word [ebp - 0x1122]
call fcn.00415070
fnstcw word [ebp - 0x1122]
movzx eax, word [ebp - 0x1122]
or eax, 0xc00
mov dword [ebp - 0x1128], eax
push str.Mana
fldcw word [ebp - 0x1128]
fistp qword [ebp - 0x112c]
mov ecx, dword [ebp - 0x112c]
mov dword [ebp - 0x10dc], ecx
fldcw word [ebp - 0x1122]
call fcn.00415070
fnstcw word [ebp - 0x1122]
movzx eax, word [ebp - 0x1122]
or eax, 0xc00
mov dword [ebp - 0x1128], eax
push str.MaxMana
fldcw word [ebp - 0x1128]
fistp qword [ebp - 0x112c]
mov edx, dword [ebp - 0x112c]
mov dword [ebp - 0x10d8], edx
fldcw word [ebp - 0x1122]
call fcn.00415070
fnstcw word [ebp - 0x1122]
movzx eax, word [ebp - 0x1122]
or eax, 0xc00
mov dword [ebp - 0x1128], eax
fldcw word [ebp - 0x1128]
fistp qword [ebp - 0x112c]
push 0x41bbbc
mov eax, dword [ebp - 0x112c]
mov dword [ebp - 0x10d4], eax
fldcw word [ebp - 0x1122]
call fcn.00415070
fnstcw word [ebp - 0x1122]
movzx eax, word [ebp - 0x1122]
or eax, 0xc00
mov dword [ebp - 0x1128], eax
push str.MaxBP
fldcw word [ebp - 0x1128]
fistp qword [ebp - 0x112c]
mov ecx, dword [ebp - 0x112c]
mov dword [ebp - 0x10d0], ecx
fldcw word [ebp - 0x1122]
call fcn.00415070
fnstcw word [ebp - 0x1122]
movzx eax, word [ebp - 0x1122]
or eax, 0xc00
mov dword [ebp - 0x1128], eax
push str.Shield
fldcw word [ebp - 0x1128]
fistp qword [ebp - 0x112c]
mov edx, dword [ebp - 0x112c]
mov dword [ebp - 0x10cc], edx
fldcw word [ebp - 0x1122]
call fcn.00415070
fnstcw word [ebp - 0x1122]
movzx eax, word [ebp - 0x1122]
or eax, 0xc00
mov dword [ebp - 0x1128], eax
push str.MaxShield
fldcw word [ebp - 0x1128]
fistp qword [ebp - 0x112c]
mov eax, dword [ebp - 0x112c]
mov dword [ebp - 0x10c8], eax
fldcw word [ebp - 0x1122]
call fcn.00415070
fnstcw word [ebp - 0x1122]
movzx eax, word [ebp - 0x1122]
or eax, 0xc00
mov dword [ebp - 0x1128], eax
push str.MapNumber
fldcw word [ebp - 0x1128]
fistp qword [ebp - 0x112c]
mov ecx, dword [ebp - 0x112c]
mov dword [ebp - 0x10c4], ecx
fldcw word [ebp - 0x1122]
call fcn.00415000
push str.MapPosX
mov byte [ebp - 0x14c], al
call fcn.00415000
push str.MapPosY
mov byte [ebp - 0x14b], al
call fcn.00415000
push str.MapDir
mov byte [ebp - 0x14a], al
call fcn.00415000
push str.PkCount
mov byte [ebp - 0x149], al
call fcn.00415000
push str.PkLevel
mov dword [ebp - 0x148], eax
call fcn.00415000
push str.PkTime
mov dword [ebp - 0x144], eax
call fcn.00415000
push str.CtlCode
mov dword [ebp - 0x140], eax
call fcn.00415000
push 0x32
lea edx, [ebp - 0x13b]
push edx
push str.Quest
mov byte [ebp - 0x13c], al
call fcn.00415200
push str.ChatLimitTime
call fcn.00415000
mov dword [ebp - 0x108], eax
push 0xd0
lea eax, [ebp - 0x100]
push eax
push str.EffectList
call fcn.00415200
push str.FruitAddPoint
call fcn.00415000
push str.FruitSubPoint
mov word [ebp - 0x104], ax
call fcn.00415000
push str.ExtInventory
mov word [ebp - 0x102], ax
call fcn.00415000
push str.IsNewChar
mov byte [ebp - 0x30], al
call fcn.00415000
push str.Married
mov dword [ebp - 0x24], eax
call fcn.00415000
push 0xb
lea ecx, [ebp - 0x1e]
push ecx
push str.MarryCouple
mov word [ebp - 0x20], ax
call fcn.00415170
mov edx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [ebp - 0x24], 0
je 0x40a1b0
push esi
push str.UPDATE_Character_SET_IsNewChar0_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 8
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_ExtWarehouse_FROM_AccountCharacter_WHERE_Id_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 8
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.ExtWarehouse
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov byte [ebp - 0x2f], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push esi
push edi
push str.EXEC_WZ_GetResetInfo__s__s
mov ecx, ebx
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Reset
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push esi
push edi
push str.EXEC_WZ_GetMasterResetInfo__s__s
mov ecx, ebx
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.MasterReset
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push esi
push edi
push str.EXEC_WZ_GetEventEntryInfo__s__s
mov ecx, ebx
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.BCCount
call fcn.00415000
push str.CCCount
mov word [ebp - 0x12], ax
call fcn.00415000
push str.DSCount
mov word [ebp - 0x10], ax
call fcn.00415000
push str.DGCount
mov word [ebp - 0xe], ax
call fcn.00415000
push str.ITCount
mov word [ebp - 0xc], ax
call fcn.00415000
mov word [ebp - 0xa], ax
push str.IGCount
call fcn.00415000
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
mov word [ebp - 8], ax
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push esi
push str.UPDATE_AccountCharacter_SET_GameIDC_s_WHERE_Id_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40a36e
xor al, al
jmp 0x409d38
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x1104], 0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1120]
push ecx
push edx
mov ebx, 0x111c
call fcn.00416c00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret