Function at 0x414940
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x205c
call fcn.004351e0
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.0041ad00
add esp, 0x10
test al, al
je 0x414df9
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
call edi
cmp ax, 0x64
je 0x414df9
lea esi, [ebp - 0x1ffe]
nop dword [eax]
cmp bl, 0x64
ja 0x414df9
push str.StorageType
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4149ec
or eax, eax
jmp 0x4149fd
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.RewardSource
mov byte [ebp - 0x2048], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414a16
or eax, eax
jmp 0x414a27
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.AuthCode
mov byte [ebp - 0x2047], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414a40
or eax, eax
jmp 0x414a51
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemGUID
mov dword [ebp - 0x2040], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414a6a
or eax, eax
jmp 0x414a7b
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemIndex
mov dword [ebp - 0x2044], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414a94
or eax, eax
jmp 0x414aa5
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemLevel
mov word [ebp - 0x203c], ax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414abf
or eax, eax
jmp 0x414ad0
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemDurability
mov byte [ebp - 0x203a], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414ae9
or eax, eax
jmp 0x414afa
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemSkill
mov byte [ebp - 0x2039], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414b13
or eax, eax
jmp 0x414b24
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemLuck
mov byte [ebp - 0x2038], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414b3d
or eax, eax
jmp 0x414b4e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemOption
mov byte [ebp - 0x2037], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414b67
or eax, eax
jmp 0x414b78
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemExcOpt
mov byte [ebp - 0x2036], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414b91
or eax, eax
jmp 0x414ba2
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemSetOpt
mov byte [ebp - 0x2035], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414bbb
or eax, eax
jmp 0x414bcc
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemJoH
mov byte [ebp - 0x2034], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414be5
or eax, eax
jmp 0x414bf6
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemOex
mov byte [ebp - 0x2033], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414c0f
or eax, eax
jmp 0x414c20
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemSocket1
mov byte [ebp - 0x2032], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414c39
or eax, eax
jmp 0x414c4a
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemSocket2
mov byte [ebp - 0x2031], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414c63
or eax, eax
jmp 0x414c74
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemSocket3
mov byte [ebp - 0x2030], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414c8d
or eax, eax
jmp 0x414c9e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemSocket4
mov byte [ebp - 0x202f], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414cb7
or eax, eax
jmp 0x414cc8
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemSocket5
mov byte [ebp - 0x202e], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414ce1
or eax, eax
jmp 0x414cf2
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemSocketBonus
mov byte [ebp - 0x202d], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414d0b
or eax, eax
jmp 0x414d1c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ItemDuration
mov byte [ebp - 0x202c], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414d35
or eax, eax
jmp 0x414d46
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ReceiveDate
mov dword [ebp - 0x2028], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414d5f
or eax, eax
jmp 0x414d70
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
cdq
push str.ExpireDate
mov dword [ebp - 0x2020], eax
mov dword [ebp - 0x201c], edx
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x414d90
or eax, eax
jmp 0x414da1
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
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 0x4149d0
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.0041c330
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret