Function at 0x413650
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.0041f490
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 0x41387a
lea eax, [ebx + 6]
push eax
push str.SELECT__FROM_CustomJewelBank_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x41385b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41385b
push str.Bless
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4136e8
or eax, eax
jmp 0x4136f9
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Soul
mov dword [ebp - 0x2c], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41370f
or eax, eax
jmp 0x413720
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Life
mov dword [ebp - 0x28], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413736
or eax, eax
jmp 0x413747
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Creation
mov dword [ebp - 0x24], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41375d
or eax, eax
jmp 0x41376e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Guardian
mov dword [ebp - 0x20], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413784
or eax, eax
jmp 0x413795
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.GemStone
mov dword [ebp - 0x1c], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4137ab
or eax, eax
jmp 0x4137bc
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Harmony
mov dword [ebp - 0x18], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4137d2
or eax, eax
jmp 0x4137e3
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Chaos
mov dword [ebp - 0x14], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4137f9
or eax, eax
jmp 0x41380a
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.LowStone
mov dword [ebp - 0x10], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413820
or eax, eax
jmp 0x413831
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.HighStone
mov dword [ebp - 0xc], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413847
or eax, eax
jmp 0x413858
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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 0x413c65
cmp al, 2
jne 0x413c65
add ebx, 6
push ebx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex7181_and_ItemLevel0
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x4138d5
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4138d5
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4138c1
or eax, eax
jmp 0x4138d2
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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.0041ad10
add esp, 0xc
test al, al
je 0x413943
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413943
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x41392f
or eax, eax
jmp 0x413940
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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.0041ad10
add esp, 0xc
test al, al
je 0x4139a5
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4139a5
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413991
or eax, eax
jmp 0x4139a2
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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.0041ad10
add esp, 0xc
test al, al
je 0x413a07
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413a07
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4139f3
or eax, eax
jmp 0x413a04
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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.0041ad10
add esp, 0xc
test al, al
je 0x413a69
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413a69
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413a55
or eax, eax
jmp 0x413a66
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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.0041ad10
add esp, 0xc
test al, al
je 0x413acb
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413acb
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413ab7
or eax, eax
jmp 0x413ac8
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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.0041ad10
add esp, 0xc
test al, al
je 0x413b2d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413b2d
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413b19
or eax, eax
jmp 0x413b2a
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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.0041ad10
add esp, 0xc
test al, al
je 0x413b8f
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413b8f
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413b7b
or eax, eax
jmp 0x413b8c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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.0041ad10
add esp, 0xc
test al, al
je 0x413bf1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413bf1
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413bdd
or eax, eax
jmp 0x413bee
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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.0041ad10
add esp, 0xc
test al, al
je 0x413c53
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413c53
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x413c3f
or eax, eax
jmp 0x413c50
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
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.0041c350
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret