Function at 0x408c30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x934
mov eax, dword [0x41d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x914], cx
mov ecx, dword [eax + 0xa]
lea esi, [eax + 6]
mov dword [ebp - 0x90e], ecx
movzx ecx, byte [esi + 0xa]
mov dword [ebp - 0x912], edx
mov dx, word [esi + 8]
mov word [ebp - 0x90a], dx
lea edx, [eax + 0x11]
mov eax, dword [edx]
mov byte [ebp - 0x908], cl
mov ecx, dword [edx + 4]
mov dword [ebp - 0x903], ecx
movzx ecx, byte [edx + 0xa]
mov dword [ebp - 0x907], eax
mov ax, word [edx + 8]
mov byte [ebp - 0x8fd], cl
mov dword [ebp - 0x918], 0x41009c2
mov dword [ebp - 0x930], esi
mov dword [ebp - 0x92c], edx
mov word [ebp - 0x8ff], ax
xor ecx, ecx
nop
mov al, byte [edx + ecx]
cmp al, 0x20
je 0x408d37
cmp al, 0x22
je 0x408d37
cmp al, 0x27
je 0x408d37
inc ecx
cmp ecx, 0xb
jl 0x408cc0
mov al, 1
test al, al
setne al
mov byte [ebp - 0x8fc], al
test al, al
je 0x4096f0
push edx
push esi
push str.SELECT__FROM_Character_WHERE_AccountID_s_AND_Name_s
mov ecx, 0x41ee38
call fcn.00412310
add esp, 0xc
test al, al
je 0x4096f0
mov edx, dword [0x41ee44]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4096f0
push str.cLevel
call fcn.004124d0
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x408d3b
or eax, 0xffffffff
jmp 0x408d49
xor al, al
jmp 0x408cd7
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Class
mov word [ebp - 0x8fa], ax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408d63
or eax, eax
jmp 0x408d71
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.LevelUpPoint
mov byte [ebp - 0x8fb], al
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408d8a
or eax, eax
jmp 0x408d98
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Experience
mov dword [ebp - 0x8f8], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408db1
or eax, eax
jmp 0x408dbf
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Strength
mov dword [ebp - 0x8f4], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408dd8
or eax, eax
jmp 0x408de6
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Dexterity
mov dword [ebp - 0x8ec], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408dff
or eax, eax
jmp 0x408e0d
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Vitality
mov dword [ebp - 0x8e8], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408e26
or eax, eax
jmp 0x408e34
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Energy
mov dword [ebp - 0x8e4], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408e4d
or eax, eax
jmp 0x408e5b
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Leadership
mov dword [ebp - 0x8e0], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408e74
or eax, eax
jmp 0x408e82
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Inventory
mov dword [ebp - 0x8dc], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408eaf
push 0x6c0
lea eax, [ebp - 0x8c0]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x408ec8
shl eax, 0xd
add eax, 0x41fa66
push eax
mov ebx, 0x6c0
lea edi, [ebp - 0x8c0]
call fcn.00412630
push str.MagicList
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408eef
push 0xb4
lea ecx, [ebp - 0x200]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x408f08
shl eax, 0xd
add eax, 0x41fa66
push eax
mov ebx, 0xb4
lea edi, [ebp - 0x200]
call fcn.00412630
push str.Money
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408f1b
or eax, eax
jmp 0x408f29
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Life
mov dword [ebp - 0x8f0], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408f4c
fld dword [0x41a87c]
fstp dword [ebp - 0x91c]
jmp 0x408f64
shl eax, 0xd
add eax, 0x41fa66
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x91c]
add esp, 4
fld dword [ebp - 0x91c]
push str.MaxLife
fnstcw word [ebp - 0x91a]
movzx eax, word [ebp - 0x91a]
or eax, 0xc00
mov dword [ebp - 0x924], eax
fldcw word [ebp - 0x924]
fistp qword [ebp - 0x928]
mov edx, dword [ebp - 0x928]
mov dword [ebp - 0x8d8], edx
fldcw word [ebp - 0x91a]
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x408fbd
fld dword [0x41a87c]
fstp dword [ebp - 0x91c]
jmp 0x408fd5
shl eax, 0xd
add eax, 0x41fa66
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x91c]
add esp, 4
fld dword [ebp - 0x91c]
push str.Mana
fnstcw word [ebp - 0x91a]
movzx eax, word [ebp - 0x91a]
or eax, 0xc00
mov dword [ebp - 0x924], eax
fldcw word [ebp - 0x924]
fistp qword [ebp - 0x928]
mov eax, dword [ebp - 0x928]
mov dword [ebp - 0x8d4], eax
fldcw word [ebp - 0x91a]
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x40902e
fld dword [0x41a87c]
fstp dword [ebp - 0x91c]
jmp 0x409046
shl eax, 0xd
add eax, 0x41fa66
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x91c]
add esp, 4
fld dword [ebp - 0x91c]
push str.MaxMana
fnstcw word [ebp - 0x91a]
movzx eax, word [ebp - 0x91a]
or eax, 0xc00
mov dword [ebp - 0x924], eax
fldcw word [ebp - 0x924]
fistp qword [ebp - 0x928]
mov ecx, dword [ebp - 0x928]
mov dword [ebp - 0x8d0], ecx
fldcw word [ebp - 0x91a]
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x40909f
fld dword [0x41a87c]
fstp dword [ebp - 0x91c]
jmp 0x4090b7
shl eax, 0xd
add eax, 0x41fa66
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x91c]
add esp, 4
fld dword [ebp - 0x91c]
push 0x4185a4
fnstcw word [ebp - 0x91a]
movzx eax, word [ebp - 0x91a]
or eax, 0xc00
mov dword [ebp - 0x924], eax
fldcw word [ebp - 0x924]
fistp qword [ebp - 0x928]
mov edx, dword [ebp - 0x928]
mov dword [ebp - 0x8cc], edx
fldcw word [ebp - 0x91a]
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409110
fld dword [0x41a87c]
fstp dword [ebp - 0x91c]
jmp 0x409128
shl eax, 0xd
add eax, 0x41fa66
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x91c]
add esp, 4
fld dword [ebp - 0x91c]
push str.MaxBP
fnstcw word [ebp - 0x91a]
movzx eax, word [ebp - 0x91a]
or eax, 0xc00
mov dword [ebp - 0x924], eax
fldcw word [ebp - 0x924]
fistp qword [ebp - 0x928]
mov eax, dword [ebp - 0x928]
mov dword [ebp - 0x8c8], eax
fldcw word [ebp - 0x91a]
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409181
fld dword [0x41a87c]
fstp dword [ebp - 0x91c]
jmp 0x409199
shl eax, 0xd
add eax, 0x41fa66
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x91c]
add esp, 4
fld dword [ebp - 0x91c]
push str.MapNumber
fnstcw word [ebp - 0x91a]
movzx eax, word [ebp - 0x91a]
or eax, 0xc00
mov dword [ebp - 0x924], eax
fldcw word [ebp - 0x924]
fistp qword [ebp - 0x928]
mov ecx, dword [ebp - 0x928]
mov dword [ebp - 0x8c4], ecx
fldcw word [ebp - 0x91a]
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4091e8
or eax, eax
jmp 0x4091f6
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.MapPosX
mov byte [ebp - 0x14c], al
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x40920f
or eax, eax
jmp 0x40921d
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.MapPosY
mov byte [ebp - 0x14b], al
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409236
or eax, eax
jmp 0x409244
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.MapDir
mov byte [ebp - 0x14a], al
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x40925d
or eax, eax
jmp 0x40926b
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.PkCount
mov byte [ebp - 0x149], al
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409284
or eax, eax
jmp 0x409292
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.PkLevel
mov dword [ebp - 0x148], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4092ab
or eax, eax
jmp 0x4092b9
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.PkTime
mov dword [ebp - 0x144], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4092d2
or eax, eax
jmp 0x4092e0
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.CtlCode
mov dword [ebp - 0x140], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4092f9
or eax, eax
jmp 0x409307
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Quest
mov byte [ebp - 0x13c], al
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409331
push 0x32
lea edx, [ebp - 0x13b]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x40934a
shl eax, 0xd
add eax, 0x41fa66
push eax
mov ebx, 0x32
lea edi, [ebp - 0x13b]
call fcn.00412630
push str.ChatLimitTime
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x40935d
or eax, eax
jmp 0x40936b
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.EffectList
mov dword [ebp - 0x108], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409398
push 0xd0
lea eax, [ebp - 0x100]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x4093b1
shl eax, 0xd
add eax, 0x41fa66
push eax
mov ebx, 0xd0
lea edi, [ebp - 0x100]
call fcn.00412630
push str.FruitAddPoint
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4093c4
or eax, eax
jmp 0x4093d2
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.FruitSubPoint
mov word [ebp - 0x104], ax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4093ec
or eax, eax
jmp 0x4093fa
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.IsNewChar
mov word [ebp - 0x102], ax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409414
or eax, eax
jmp 0x409422
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.Married
mov dword [ebp - 0x28], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409438
or eax, eax
jmp 0x409446
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.MarryCouple
mov word [ebp - 0x24], ax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x40946a
xor eax, eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x1a], ax
mov byte [ebp - 0x18], al
jmp 0x409484
shl eax, 0xd
push 0xa
add eax, 0x41fa66
push eax
lea ecx, [ebp - 0x22]
push 0xb
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
mov edx, dword [0x41ee44]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call edi
mov eax, dword [0x41ee44]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push eax
call ebx
cmp dword [ebp - 0x28], 0
je 0x4094d5
mov ecx, dword [ebp - 0x92c]
push ecx
push str.UPDATE_Character_SET_IsNewChar0_WHERE_Name_s
mov ecx, 0x41ee38
call fcn.00412310
mov edx, dword [0x41ee44]
add esp, 8
push edx
call edi
mov eax, dword [0x41ee44]
push 2
push eax
call ebx
mov ecx, dword [ebp - 0x92c]
mov edx, dword [ebp - 0x930]
push ecx
push edx
push str.EXEC_WZ_GetResetInfo__s__s
mov ecx, 0x41ee38
call fcn.00412310
mov eax, dword [0x41ee44]
add esp, 0xc
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Reset
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409514
or eax, eax
jmp 0x409522
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
mov ecx, dword [0x41ee44]
push ecx
mov dword [ebp - 0x30], eax
call edi
mov edx, dword [0x41ee44]
push 2
push edx
call ebx
mov eax, dword [ebp - 0x92c]
mov ecx, dword [ebp - 0x930]
push eax
push ecx
push str.EXEC_WZ_GetMasterResetInfo__s__s
mov ecx, 0x41ee38
call fcn.00412310
mov edx, dword [0x41ee44]
add esp, 0xc
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.MasterReset
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409579
or eax, eax
jmp 0x409587
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [0x41ee44]
push eax
call edi
mov ecx, dword [0x41ee44]
push 2
push ecx
call ebx
mov edx, dword [ebp - 0x92c]
mov eax, dword [ebp - 0x930]
push edx
push eax
push str.EXEC_WZ_GetEventEntryInfo__s__s
mov ecx, 0x41ee38
call fcn.00412310
mov ecx, dword [0x41ee44]
add esp, 0xc
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.BCCount
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4095dd
or eax, eax
jmp 0x4095eb
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.CCCount
mov word [ebp - 0x16], ax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409602
or eax, eax
jmp 0x409610
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.DSCount
mov word [ebp - 0x14], ax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409627
or eax, eax
jmp 0x409635
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.DGCount
mov word [ebp - 0x12], ax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x40964c
or eax, eax
jmp 0x40965a
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.ITCount
mov word [ebp - 0x10], ax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409671
or eax, eax
jmp 0x40967f
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.IGCount
mov word [ebp - 0xe], ax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x409696
or eax, eax
jmp 0x4096a4
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
mov edx, dword [0x41ee44]
push edx
mov word [ebp - 0xc], ax
call edi
mov eax, dword [0x41ee44]
push 2
push eax
call ebx
mov ecx, dword [ebp - 0x930]
mov edx, dword [ebp - 0x92c]
push ecx
push edx
push str.UPDATE_AccountCharacter_SET_GameIDC_s_WHERE_Id_s
mov ecx, 0x41ee38
call fcn.00412310
mov eax, dword [0x41ee44]
add esp, 0xc
push eax
call edi
mov ecx, dword [0x41ee44]
push 2
push ecx
call ebx
jmp 0x409712
mov edx, dword [0x41ee44]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x41ee44]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x8fc], 0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x918]
push ecx
push edx
mov ebx, 0x910
call fcn.00413de0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415636
mov esp, ebp
pop ebp
ret