Function at 0x413380
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 0x37
lea eax, [ebp - 0x37]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.0041f490
movzx eax, word [esi + 4]
lea ecx, [esi + 6]
movq xmm0, qword [ecx]
add esp, 0xc
mov word [ebp - 0x34], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x2a], ax
mov al, byte [ecx + 0xa]
push ecx
push str.SELECT__FROM_CustomAttack_WHERE_Name_s
push 0x446e50
mov word [ebp - 0x38], 0x38c1
mov byte [ebp - 0x36], 0xf5
movq qword [ebp - 0x32], xmm0
mov byte [ebp - 0x28], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x413628
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413628
push str.Active
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41340c
or eax, eax
jmp 0x41341d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Skill
mov word [ebp - 0x26], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413434
or eax, eax
jmp 0x413445
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push 0x43e634
mov word [ebp - 0x24], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41345c
or eax, eax
jmp 0x41346d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.PosX
mov word [ebp - 0x22], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413484
or eax, eax
jmp 0x413495
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.PosY
mov word [ebp - 0x20], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4134ac
or eax, eax
jmp 0x4134bd
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.AutoBuff
mov word [ebp - 0x1e], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4134d4
or eax, eax
jmp 0x4134e5
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.OffPvP
mov word [ebp - 0x1c], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4134fc
or eax, eax
jmp 0x41350d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.AutoReset
mov word [ebp - 0x1a], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413524
or eax, eax
jmp 0x413535
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.AutoAddStr
mov word [ebp - 0x18], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41354c
or eax, eax
jmp 0x41355d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.AutoAddAgi
mov dword [ebp - 0x14], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413573
or eax, eax
jmp 0x413584
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.AutoAddVit
mov dword [ebp - 0x10], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41359a
or eax, eax
jmp 0x4135ab
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.AutoAddEne
mov dword [ebp - 0xc], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4135c1
or eax, eax
jmp 0x4135d2
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.AutoAddCmd
mov dword [ebp - 8], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4135e8
or eax, eax
jmp 0x4135f9
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x38
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0041c350
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov esp, ebp
pop ebp
ret