Function at 0x40ff10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
add eax, 6
mov word [ebp - 0x38], cx
mov ecx, dword [eax + 4]
push ebx
mov dword [ebp - 0x32], ecx
mov cl, byte [eax + 0xa]
push esi
mov dword [ebp - 0x36], edx
mov dx, word [eax + 8]
push eax
mov byte [ebp - 0x2c], cl
push str.SELECT__FROM_CustomAttack_WHERE_Name_s
mov ecx, 0x424ee0
mov ebx, 0x38
mov word [ebp - 0x3c], 0x38c1
mov byte [ebp - 0x3a], 0xf5
mov word [ebp - 0x2e], dx
call fcn.00417790
add esp, 8
test al, al
je 0x41018f
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41018f
push str.Active
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x40ff98
or eax, 0xffffffff
jmp 0x40ffa6
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Skill
mov word [ebp - 0x2a], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40ffbd
or eax, eax
jmp 0x40ffcb
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push 0x41fa20
mov word [ebp - 0x28], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40ffe2
or eax, eax
jmp 0x40fff0
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.PosX
mov word [ebp - 0x26], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x410007
or eax, eax
jmp 0x410015
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.PosY
mov word [ebp - 0x24], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x41002c
or eax, eax
jmp 0x41003a
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.AutoBuff
mov word [ebp - 0x22], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x410051
or eax, eax
jmp 0x41005f
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.OffPvP
mov word [ebp - 0x20], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x410076
or eax, eax
jmp 0x410084
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.AutoReset
mov word [ebp - 0x1e], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x41009b
or eax, eax
jmp 0x4100a9
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.AutoAddStr
mov word [ebp - 0x1c], ax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4100c0
or eax, eax
jmp 0x4100ce
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.AutoAddAgi
mov dword [ebp - 0x18], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4100e4
or eax, eax
jmp 0x4100f2
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.AutoAddVit
mov dword [ebp - 0x14], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x410108
or eax, eax
jmp 0x410116
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.AutoAddEne
mov dword [ebp - 0x10], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x41012c
or eax, eax
jmp 0x41013a
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.AutoAddCmd
mov dword [ebp - 0xc], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x410150
or eax, eax
jmp 0x41015e
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3c]
push edx
push eax
call fcn.004198e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret