Function at 0x415ca0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.004351e0
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1027], xmm0
mov word [ebp - 0x1017], 0
mov dword [ebp - 0x103c], ecx
mov ecx, 0x14
mov ax, word [esi + 8]
movq xmm0, qword [esi]
mov word [ebp - 0x1018], ax
mov al, byte [esi + 0xa]
lea esi, [ebp + 0xc]
mov byte [ebp - 0x1015], 0
push edi
mov byte [ebp - 0x1028], 0xc2
mov word [ebp - 0x1025], 0x47f7
mov dword [ebp - 0x1010], ecx
mov word [ebp - 0x1022], dx
movq qword [ebp - 0x1020], xmm0
mov byte [ebp - 0x1016], al
mov byte [ebp - 0x1015], 0
mov dword [ebp - 0x1014], 0
lea edi, [ebp - 0x100c]
xor ebx, ebx
add edi, ecx
nop dword [eax]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x415f68
push eax
push str.SELECT_top_1_SkinR_SkinG_SkinB_SkinA_GlowR_GlowG_GlowB_GlowA_Bright_FROM_CustomExclusiveGlow_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x415f4e
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x415f4e
mov eax, dword [ebp - 0x1014]
push str.SkinR
mov byte [ebp - 0x1034], bl
mov dword [ebp - 0x1038], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x415da1
or eax, eax
jmp 0x415db2
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.SkinG
mov byte [ebp - 0x1033], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x415dcb
or eax, eax
jmp 0x415ddc
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.SkinB
mov byte [ebp - 0x1032], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x415df5
or eax, eax
jmp 0x415e06
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.SkinA
mov byte [ebp - 0x1031], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x415e1f
or eax, eax
jmp 0x415e30
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.GlowR
mov byte [ebp - 0x1030], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x415e49
or eax, eax
jmp 0x415e5a
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.GlowG
mov byte [ebp - 0x102f], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x415e73
or eax, eax
jmp 0x415e84
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.GlowB
mov byte [ebp - 0x102e], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x415e9d
or eax, eax
jmp 0x415eae
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.GlowA
mov byte [ebp - 0x102d], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x415ec7
or eax, eax
jmp 0x415ed8
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.Bright
mov byte [ebp - 0x102c], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x415ef1
or eax, eax
jmp 0x415f02
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push dword [0x446e5c]
mov byte [ebp - 0x102b], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movups xmm0, xmmword [ebp - 0x1038]
mov ecx, dword [ebp - 0x1010]
mov al, byte [ebp - 0x1015]
add ecx, 0x10
movups xmmword [edi], xmm0
add edi, 0x10
mov dword [ebp - 0x1010], ecx
inc al
mov byte [ebp - 0x1015], al
jmp 0x415f74
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1010]
mov al, byte [ebp - 0x1015]
inc ebx
add esi, 4
cmp ebx, 8
jl 0x415d40
mov edx, dword [ebp - 0x1014]
inc edx
mov dword [ebp - 0x1014], edx
cmp edx, 0xa
jl 0x415d33
test al, al
je 0x415fd9
mov eax, ecx
mov byte [ebp - 0x1026], cl
shr eax, 8
mov byte [ebp - 0x1027], al
mov eax, dword [ebp - 0x1018]
movups xmm0, xmmword [ebp - 0x1028]
mov dword [ebp - 0xffc], eax
lea eax, [ebp - 0x100c]
push ecx
push eax
push dword [ebp - 0x103c]
movups xmmword [ebp - 0x100c], xmm0
call fcn.0041c330
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret