Function at 0x41aae0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf38
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
movzx eax, word [edi + 4]
mov ecx, dword [edi + 6]
mov edx, dword [edi + 0xa]
mov dword [ebp - 0xf38], edi
add edi, 6
mov dword [ebp - 0xf18], ecx
mov cl, byte [edi + 0xa]
mov word [ebp - 0xf1a], ax
movzx eax, word [edi + 8]
mov byte [ebp - 0xf0e], cl
push edi
push str.SELECT_Guild_FROM_WarehouseGuild_WHERE_Guild_s
mov ecx, 0x424ee0
mov dword [ebp - 0xf20], 0x51c0fc2
mov byte [ebp - 0xf1c], 0x70
mov dword [ebp - 0xf14], edx
mov word [ebp - 0xf10], ax
call fcn.00417790
add esp, 8
test al, al
je 0x41acd1
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
push edx
call ebx
cmp ax, 0x64
je 0x41acd1
mov eax, dword [0x424eec]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call esi
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_Items_Money_pw_FROM_WarehouseGuild_WHERE_Guild_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x41ac7f
mov edx, dword [0x424eec]
push edx
call ebx
cmp ax, 0x64
je 0x41ac7f
push str.Items
call fcn.00417950
cmp eax, 0xffffffff
jne 0x41abe9
push 0xf00
lea eax, [ebp - 0xf0d]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x41ac02
shl eax, 0xd
add eax, 0x425b0e
push eax
mov ebx, 0xf00
lea edi, [ebp - 0xf0d]
call fcn.00417ab0
push str.Money
call fcn.00417950
mov edi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x41ac1c
or eax, 0xffffffff
jmp 0x41ac2a
shl eax, 0xd
add eax, 0x425b0e
push eax
call edi
add esp, 4
push 0x4218e4
mov dword [ebp - 0xc], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x41ac40
or eax, eax
jmp 0x41ac4e
shl eax, 0xd
add eax, 0x425b0e
push eax
call edi
add esp, 4
mov ecx, dword [0x424eec]
push ecx
mov word [ebp - 8], ax
call esi
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xf20]
push ecx
push edx
mov ebx, 0xf1c
jmp 0x41ad97
mov eax, dword [0x424eec]
push eax
call esi
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xf00
lea edx, [ebp - 0xf0d]
push 0xff
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0xf20]
xor eax, eax
push ecx
mov dword [ebp - 0xc], 0
mov word [ebp - 8], ax
push edx
mov ebx, 0xf1c
jmp 0x41ad97
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x424eec]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call esi
push edi
push str.INSERT_INTO_WarehouseGuild__Guild_Money_EndUseDate_DbVersion__VALUES___s_0_getdate___3_
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 8
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call esi
push edi
push 0xf00
push 0xf00
push str.UPDATE_WarehouseGuild_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_Guild_s
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0x10
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call esi
mov eax, dword [ebp - 0xf38]
movzx ecx, word [eax + 4]
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov word [ebp - 0xf30], cx
movzx ecx, word [edi + 8]
mov dword [ebp - 0xf2a], eax
lea eax, [ebp - 0xf34]
mov dword [ebp - 0xf2e], edx
mov dl, byte [edi + 0xa]
mov word [ebp - 0xf26], cx
mov ecx, dword [ebp + 8]
push eax
mov ebx, 0x12
mov dword [ebp - 0xf34], 0x710512c1
mov byte [ebp - 0xf24], dl
push ecx
call fcn.004198e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 4