Function at 0x413610
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 0x2f
lea eax, [ebp - 0x33]
mov dword [ebp - 4], edx
push 0
push eax
mov ebx, ecx
call fcn.0041f470
mov ax, word [ebx + 4]
xorps xmm0, xmm0
mov word [ebp - 0x30], ax
add esp, 0xc
mov al, byte [ebx + 0x11]
mov dword [ebp - 0x34], 0x5f730c1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
cmp al, 1
jne 0x41383a
lea eax, [ebx + 6]
push eax
push str.SELECT__FROM_CustomJewelBank_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x41381b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41381b
push str.Bless
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4136a8
or eax, eax
jmp 0x4136b9
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.Soul
mov dword [ebp - 0x2c], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4136cf
or eax, eax
jmp 0x4136e0
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.Life
mov dword [ebp - 0x28], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4136f6
or eax, eax
jmp 0x413707
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.Creation
mov dword [ebp - 0x24], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41371d
or eax, eax
jmp 0x41372e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.Guardian
mov dword [ebp - 0x20], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413744
or eax, eax
jmp 0x413755
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.GemStone
mov dword [ebp - 0x1c], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41376b
or eax, eax
jmp 0x41377c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.Harmony
mov dword [ebp - 0x18], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413792
or eax, eax
jmp 0x4137a3
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.Chaos
mov dword [ebp - 0x14], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4137b9
or eax, eax
jmp 0x4137ca
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.LowStone
mov dword [ebp - 0x10], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4137e0
or eax, eax
jmp 0x4137f1
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.HighStone
mov dword [ebp - 0xc], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413807
or eax, eax
jmp 0x413818
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 8], eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x413c25
cmp al, 2
jne 0x413c25
add ebx, 6
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex7181_and_ItemLevel0
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x413895
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413895
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413881
or eax, eax
jmp 0x413892
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x2c], eax
push dword [0x446e5c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call edi
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex7182_and_ItemLevel0
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x413903
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413903
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4138ef
or eax, eax
jmp 0x413900
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x28], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex7184_and_ItemLevel0
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x413965
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413965
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413951
or eax, eax
jmp 0x413962
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x24], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex7190_and_ItemLevel0
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x4139c7
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4139c7
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4139b3
or eax, eax
jmp 0x4139c4
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x20], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex7199_and_ItemLevel0
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x413a29
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413a29
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413a15
or eax, eax
jmp 0x413a26
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x1c], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex7209_and_ItemLevel0
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x413a8b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413a8b
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413a77
or eax, eax
jmp 0x413a88
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex7210_and_ItemLevel0
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x413aed
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413aed
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413ad9
or eax, eax
jmp 0x413aea
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x14], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex6159_and_ItemLevel0
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x413b4f
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413b4f
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413b3b
or eax, eax
jmp 0x413b4c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x10], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex7211_and_ItemLevel0
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x413bb1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413bb1
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413b9d
or eax, eax
jmp 0x413bae
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0xc], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex7212_and_ItemLevel0
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x413c13
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413c13
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x413bff
or eax, eax
jmp 0x413c10
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 8], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
push 0x30
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call fcn.0041c330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret