Function at 0x414f40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7bc
mov eax, dword [0x41d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 6]
push esi
mov dword [ebp - 0x7a8], edi
call fcn.00415250
test al, al
jne 0x414f95
mov ax, word [edi + 4]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x7a8]
push ecx
mov ebx, 6
mov dword [ebp - 0x7a8], 0x750506c1
mov word [ebp - 0x7a4], ax
push edx
jmp 0x4151af
movzx eax, word [edi + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 0x798], ecx
mov cl, byte [esi + 0xa]
mov word [ebp - 0x79a], ax
movzx eax, word [esi + 8]
mov byte [ebp - 0x78e], cl
push esi
push str.SELECT_Guild_FROM_WarehouseGuild_WHERE_Guild_s
mov ecx, 0x41ee38
mov dword [ebp - 0x7a0], 0x59c07c2
mov byte [ebp - 0x79c], 0x70
mov dword [ebp - 0x794], edx
mov word [ebp - 0x790], ax
call fcn.00412310
add esp, 8
test al, al
je 0x4150e9
mov edx, dword [0x41ee44]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4150e9
mov eax, dword [0x41ee44]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x41ee44]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.SELECT_Items_Money_pw_FROM_WarehouseGuild_WHERE_Guild_s
mov ecx, 0x41ee38
call fcn.00412310
add esp, 8
test al, al
je 0x41509b
mov edx, dword [0x41ee44]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41509b
mov ecx, 0x780
lea edx, [ebp - 0x78d]
mov eax, str.Items
call fcn.004125c0
mov eax, str.Money
call fcn.00412520
mov dword [ebp - 0xc], eax
mov eax, 0x41a4bc
call fcn.00412520
mov word [ebp - 8], ax
call fcn.004124b0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x7a0]
push ecx
push edx
mov ebx, 0x79c
jmp 0x4151af
mov eax, dword [0x41ee44]
push eax
call edi
mov ecx, dword [0x41ee44]
push 2
push ecx
call ebx
push 0x780
lea edx, [ebp - 0x78d]
push 0xff
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x7a0]
xor eax, eax
push ecx
mov dword [ebp - 0xc], 0
mov word [ebp - 8], ax
push edx
mov ebx, 0x79c
jmp 0x4151af
mov eax, dword [0x41ee44]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x41ee44]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.INSERT_INTO_WarehouseGuild__Guild_Money_EndUseDate_DbVersion__VALUES___s_0_getdate___3_
mov ecx, 0x41ee38
call fcn.00412310
mov edx, dword [0x41ee44]
add esp, 8
push edx
call edi
mov eax, dword [0x41ee44]
push 2
push eax
call ebx
push esi
push 0x780
push 0x780
push str.UPDATE_WarehouseGuild_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_Guild_s
mov ecx, 0x41ee38
call fcn.00412310
mov ecx, dword [0x41ee44]
add esp, 0x10
push ecx
call edi
mov edx, dword [0x41ee44]
push 2
push edx
call ebx
mov eax, dword [ebp - 0x7a8]
movzx ecx, word [eax + 4]
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov word [ebp - 0x7b8], cx
movzx ecx, word [esi + 8]
mov dword [ebp - 0x7b2], eax
lea eax, [ebp - 0x7bc]
mov dword [ebp - 0x7b6], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 0x7ae], cx
mov ecx, dword [ebp + 8]
push eax
mov ebx, 0x12
mov dword [ebp - 0x7bc], 0x710512c1
mov byte [ebp - 0x7ac], dl
push ecx
call fcn.00413de0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415636
mov esp, ebp
pop ebp
ret 4