Function at 0x414980
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x205c
call fcn.00435200
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [ecx + 4]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov word [ebp - 0x200c], ax
xor bl, bl
lea eax, [ecx + 0x11]
mov dword [ebp - 0x204c], edx
push eax
lea eax, [ecx + 6]
movq qword [ebp - 0x2057], xmm0
push eax
push str.SELECT__FROM_GremoryCase_WHERE_AccountID___s_AND___Name___s_AND_StorageType__2__OR_StorageType__1__ORDER_BY_StorageType_ASC__ExpireDate_ASC
push 0x446e50
mov byte [ebp - 0x2009], 0
mov dword [ebp - 0x2010], 0xa
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x414e39
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
call edi
cmp ax, 0x64
je 0x414e39
lea esi, [ebp - 0x1ffe]
nop dword [eax]
cmp bl, 0x64
ja 0x414e39
push str.StorageType
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414a2c
or eax, eax
jmp 0x414a3d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.RewardSource
mov byte [ebp - 0x2048], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414a56
or eax, eax
jmp 0x414a67
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.AuthCode
mov byte [ebp - 0x2047], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414a80
or eax, eax
jmp 0x414a91
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemGUID
mov dword [ebp - 0x2040], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414aaa
or eax, eax
jmp 0x414abb
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemIndex
mov dword [ebp - 0x2044], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414ad4
or eax, eax
jmp 0x414ae5
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemLevel
mov word [ebp - 0x203c], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414aff
or eax, eax
jmp 0x414b10
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemDurability
mov byte [ebp - 0x203a], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414b29
or eax, eax
jmp 0x414b3a
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSkill
mov byte [ebp - 0x2039], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414b53
or eax, eax
jmp 0x414b64
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemLuck
mov byte [ebp - 0x2038], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414b7d
or eax, eax
jmp 0x414b8e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemOption
mov byte [ebp - 0x2037], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414ba7
or eax, eax
jmp 0x414bb8
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemExcOpt
mov byte [ebp - 0x2036], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414bd1
or eax, eax
jmp 0x414be2
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSetOpt
mov byte [ebp - 0x2035], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414bfb
or eax, eax
jmp 0x414c0c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemJoH
mov byte [ebp - 0x2034], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414c25
or eax, eax
jmp 0x414c36
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemOex
mov byte [ebp - 0x2033], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414c4f
or eax, eax
jmp 0x414c60
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocket1
mov byte [ebp - 0x2032], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414c79
or eax, eax
jmp 0x414c8a
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocket2
mov byte [ebp - 0x2031], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414ca3
or eax, eax
jmp 0x414cb4
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocket3
mov byte [ebp - 0x2030], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414ccd
or eax, eax
jmp 0x414cde
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocket4
mov byte [ebp - 0x202f], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414cf7
or eax, eax
jmp 0x414d08
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocket5
mov byte [ebp - 0x202e], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414d21
or eax, eax
jmp 0x414d32
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemSocketBonus
mov byte [ebp - 0x202d], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414d4b
or eax, eax
jmp 0x414d5c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemDuration
mov byte [ebp - 0x202c], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414d75
or eax, eax
jmp 0x414d86
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ReceiveDate
mov dword [ebp - 0x2028], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414d9f
or eax, eax
jmp 0x414db0
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
cdq
push str.ExpireDate
mov dword [ebp - 0x2020], eax
mov dword [ebp - 0x201c], edx
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x414dd0
or eax, eax
jmp 0x414de1
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
movups xmm0, xmmword [ebp - 0x2048]
add dword [ebp - 0x2010], 0x38
inc bl
push dword [0x446e5c]
movups xmmword [esi], xmm0
cdq
movups xmm0, xmmword [ebp - 0x2038]
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x2014], edx
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x2028]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [ebp - 0x2018]
movq qword [esi + 0x30], xmm0
add esi, 0x38
call edi
cmp ax, 0x64
jne 0x414a10
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 - 0x2010]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x2007], al
mov al, byte [ebp - 0x2053]
mov byte [ebp - 0x2003], al
mov ax, word [ebp - 0x200c]
mov word [ebp - 0x2002], ax
mov al, byte [ebp - 0x2009]
mov byte [ebp - 0x1fff], al
lea eax, [ebp - 0x2008]
push ecx
push eax
push dword [ebp - 0x204c]
mov byte [ebp - 0x2008], 0xc2
mov byte [ebp - 0x2006], cl
mov word [ebp - 0x2005], 0x4f
mov byte [ebp - 0x2000], bl
call fcn.0041c350
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc7d
mov esp, ebp
pop ebp
ret