Function at 0x415450
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xorps xmm0, xmm0
mov word [ebp - 7], 0
movups xmmword [ebp - 0x17], xmm0
push edi
mov ax, word [esi + 4]
mov bl, byte [esi + 0x14]
mov edx, dword [esi + 0x18]
mov word [ebp - 0x14], ax
movzx eax, word [esi + 0x12]
mov ecx, eax
mov word [ebp - 0x12], ax
add eax, 0xffffe7e2
mov byte [ebp - 5], 0
mov dword [ebp - 0x18], 0x36f714c1
mov byte [ebp - 0x10], bl
mov dword [ebp - 0xc], edx
mov byte [ebp - 0xf], 1
cmp eax, 0x71
ja case.0x4154a9.6176
movzx eax, byte [eax + 0x4156b8]
jmp dword [eax*4 + 0x41568c]
mov eax, 0x1c0d
jmp 0x4154f4
mov eax, 0x1c0e
jmp 0x4154f4
mov eax, 0x1c10
jmp 0x4154f4
mov eax, 0x1c16
jmp 0x4154f4
mov eax, 0x1c1f
jmp 0x4154f4
mov eax, 0x1c29
jmp 0x4154f4
mov eax, 0x1c2a
jmp 0x4154f4
mov eax, 0x180f
jmp 0x4154f4
mov eax, 0x1c2b
jmp 0x4154f4
mov eax, 0x1c2c
movzx ecx, ax
movzx eax, bl
inc eax
mov word [esi + 0x12], cx
mov byte [esi + 0x14], 0
lea edx, [eax + eax*4]
add edx, edx
xor bl, bl
mov dword [esi + 0x18], edx
push edx
mov edi, ecx
movzx eax, bl
push eax
movzx eax, di
lea ecx, [esi + 6]
push eax
push ecx
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex_d_and_ItemLevel_d_and_ItemCount____d
push 0x446e50
call fcn.0041ad00
add esp, 0x18
test al, al
je 0x415651
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x415651
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call ebx
movzx eax, byte [esi + 0x14]
push eax
movzx eax, word [esi + 0x12]
push eax
lea eax, [esi + 6]
push eax
push dword [esi + 0x18]
push str.Update_CustomItemBank_SET_ItemCountItemCount__d_WHERE_AccountID_s_and_ItemIndex_d_and_ItemLevel_d
push 0x446e50
call fcn.0041ad00
add esp, 0x18
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call ebx
movzx eax, byte [esi + 0x14]
push eax
movzx eax, word [esi + 0x12]
push eax
lea eax, [esi + 6]
push eax
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s_and_ItemIndex_d_and_ItemLevel_d
push 0x446e50
call fcn.0041ad00
add esp, 0x14
test al, al
je 0x415623
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x415623
push str.ItemCount
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4155e8
or eax, eax
jmp 0x4155f9
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 8], eax
call edi
push 2
push dword [0x446e5c]
call ebx
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call fcn.0041c330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call ebx
push 0x14
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0xffffffff
push eax
push dword [ebp - 4]
call fcn.0041c330
pop edi
pop esi
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 0x14
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0xffffffff
push eax
movzx eax, word [esi + 4]
push eax
call fcn.0041c330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret