Function at 0x413340
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.0041f470
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.0041ad00
add esp, 0xc
test al, al
je 0x4135e8
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4135e8
push str.Active
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4133cc
or eax, eax
jmp 0x4133dd
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.Skill
mov word [ebp - 0x26], ax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4133f4
or eax, eax
jmp 0x413405
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push 0x43e634
mov word [ebp - 0x24], ax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41341c
or eax, eax
jmp 0x41342d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.PosX
mov word [ebp - 0x22], ax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413444
or eax, eax
jmp 0x413455
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.PosY
mov word [ebp - 0x20], ax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41346c
or eax, eax
jmp 0x41347d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.AutoBuff
mov word [ebp - 0x1e], ax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413494
or eax, eax
jmp 0x4134a5
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.OffPvP
mov word [ebp - 0x1c], ax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4134bc
or eax, eax
jmp 0x4134cd
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.AutoReset
mov word [ebp - 0x1a], ax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4134e4
or eax, eax
jmp 0x4134f5
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.AutoAddStr
mov word [ebp - 0x18], ax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41350c
or eax, eax
jmp 0x41351d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.AutoAddAgi
mov dword [ebp - 0x14], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413533
or eax, eax
jmp 0x413544
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.AutoAddVit
mov dword [ebp - 0x10], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41355a
or eax, eax
jmp 0x41356b
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.AutoAddEne
mov dword [ebp - 0xc], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413581
or eax, eax
jmp 0x413592
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.AutoAddCmd
mov dword [ebp - 8], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4135a8
or eax, eax
jmp 0x4135b9
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
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.0041c330
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