Function at 0x414ed0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push 0x27
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], edx
push 0
push eax
mov ebx, ecx
call fcn.0041f490
mov ax, word [ebx + 4]
add esp, 0xc
mov word [ebp - 0x26], ax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
push dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], al
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
movzx eax, word [ebx + 6]
push eax
push str.SELECT_top_1__FROM_GremoryCase_WHERE_ItemIndex_d_and_ItemGUID_d_and_AuthCode_d
push 0x446e50
mov dword [ebp - 0x2c], 0x24f28c1
mov byte [ebp - 0x28], 0
call fcn.0041ad10
add esp, 0x14
test al, al
je 0x4152a2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4152a2
push str.ItemIndex
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414f67
or eax, eax
jmp 0x414f78
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemLevel
mov word [ebp - 0x24], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414f8f
or eax, eax
jmp 0x414fa0
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemDurability
mov byte [ebp - 0x22], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414fb6
or eax, eax
jmp 0x414fc7
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSkill
mov byte [ebp - 0x21], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414fdd
or eax, eax
jmp 0x414fee
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemLuck
mov byte [ebp - 0x20], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x415004
or eax, eax
jmp 0x415015
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemOption
mov byte [ebp - 0x1f], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41502b
or eax, eax
jmp 0x41503c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemExcOpt
mov byte [ebp - 0x1e], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x415052
or eax, eax
jmp 0x415063
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSetOpt
mov byte [ebp - 0x1d], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x415079
or eax, eax
jmp 0x41508a
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemJoH
mov byte [ebp - 0x1c], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4150a0
or eax, eax
jmp 0x4150b1
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemOex
mov byte [ebp - 0x1b], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4150c7
or eax, eax
jmp 0x4150d8
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocket1
mov byte [ebp - 0x1a], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4150ee
or eax, eax
jmp 0x4150ff
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocket2
mov byte [ebp - 0x19], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x415115
or eax, eax
jmp 0x415126
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocket3
mov byte [ebp - 0x18], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41513c
or eax, eax
jmp 0x41514d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocket4
mov byte [ebp - 0x17], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x415163
or eax, eax
jmp 0x415174
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocket5
mov byte [ebp - 0x16], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41518a
or eax, eax
jmp 0x41519b
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocketBonus
mov byte [ebp - 0x15], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4151b1
or eax, eax
jmp 0x4151c2
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemDuration
mov byte [ebp - 0x14], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4151d8
or eax, eax
jmp 0x4151e9
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemGUID
mov dword [ebp - 0x10], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4151ff
or eax, eax
jmp 0x415210
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.AuthCode
mov dword [ebp - 0xc], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x415226
or eax, eax
jmp 0x415237
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [ebx + 0xc]
movzx eax, word [ebx + 6]
push dword [ebx + 8]
push eax
push str.DELETE_FROM_GremoryCase_WHERE_ItemIndex_d_and_ItemGUID_d_and_AuthCode_d
push 0x446e50
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], 1
push eax
push dword [ebp - 4]
call fcn.0041c350
pop ebx
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]
push 0x28
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0041c350
pop ebx
mov esp, ebp
pop ebp
ret