Function at 0x41d600
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf44
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x51080c]
push ebx
push esi
mov esi, dword [0x510810]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xf40], edi
lea ebx, [edi + 6]
mov dword [ebp - 0xf44], ebx
cmp eax, esi
je 0x41d676
mov ecx, ebx
mov edx, eax
nop dword [eax + eax]
mov bl, byte [edx]
cmp bl, byte [ecx]
jne 0x41d660
test bl, bl
je 0x41d65c
mov bl, byte [edx + 1]
cmp bl, byte [ecx + 1]
jne 0x41d660
add edx, 2
add ecx, 2
test bl, bl
jne 0x41d640
xor ecx, ecx
jmp 0x41d665
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x41d6a9
mov ebx, dword [ebp - 0xf44]
add eax, 0xb
cmp eax, esi
jne 0x41d637
movq xmm0, qword [ebx]
mov ax, word [ebx + 8]
mov cl, byte [ebx + 0xa]
movq qword [ebp - 0x14], xmm0
mov word [ebp - 0xc], ax
mov byte [ebp - 0xa], cl
cmp esi, dword [0x510814]
je 0x41d6dc
movq qword [esi], xmm0
mov word [esi + 8], ax
mov byte [esi + 0xa], cl
add dword [0x510810], 0xb
jmp 0x41d6eb
mov ax, word [edi + 4]
mov dword [ebp - 0xf3f], 0
mov byte [ebp - 0xf3b], 0
mov word [ebp - 0xf3c], ax
lea eax, [ebp - 0xf40]
mov dword [ebp - 0xf40], 0x750506c1
push 6
jmp 0x41d93a
lea eax, [ebp - 0x14]
mov ecx, 0x51080c
push eax
push esi
call fcn.0041d9d0
push 0xf1b
lea eax, [ebp - 0xf37]
push 0
push eax
call fcn.0041f470
movzx eax, word [edi + 4]
add esp, 0xc
movq xmm0, qword [ebx]
mov word [ebp - 0xf32], ax
movzx eax, word [ebx + 8]
push ebx
mov word [ebp - 0xf28], ax
mov al, byte [ebx + 0xa]
push str.SELECT_Guild_FROM_WarehouseGuild_WHERE_Guild_s
push 0x446e50
mov dword [ebp - 0xf38], 0x51c0fc2
mov byte [ebp - 0xf34], 0x70
movq qword [ebp - 0xf30], xmm0
mov byte [ebp - 0xf26], al
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x41d88c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41d88c
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_Items_Money_pw_FROM_WarehouseGuild_WHERE_Guild_s
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x41d844
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41d844
push 0xf00
lea eax, [ebp - 0xf25]
push eax
push str.Items
call fcn.0041afa0
push str.Money
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41d7e6
or eax, eax
jmp 0x41d7f7
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push 0x442a04
mov dword [ebp - 0x24], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41d80d
or eax, eax
jmp 0x41d81e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push dword [0x446e5c]
mov word [ebp - 0x20], ax
call esi
push 2
push dword [0x446e5c]
call edi
push 0xf1c
lea eax, [ebp - 0xf38]
jmp 0x41d93a
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
push 0xf00
lea eax, [ebp - 0xf25]
push 0xff
push eax
call fcn.0041f470
add esp, 0xc
mov dword [ebp - 0x24], 0
xor eax, eax
mov word [ebp - 0x20], ax
lea eax, [ebp - 0xf38]
push 0xf1c
jmp 0x41d93a
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push ebx
push str.INSERT_INTO_WarehouseGuild__Guild_Money_EndUseDate_DbVersion__VALUES___s_0_getdate___3_
push 0x446e50
call fcn.0041ad00
add esp, 0xc
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
push ebx
push 0xf00
push 0xf00
push str.UPDATE_WarehouseGuild_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_Guild_s
push 0x446e50
call fcn.0041ad00
add esp, 0x14
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0xf40]
xorps xmm0, xmm0
movups xmmword [ebp - 0x17], xmm0
mov byte [ebp - 7], 0
movq xmm0, qword [ebx]
movzx eax, word [eax + 4]
mov word [ebp - 0x14], ax
movzx eax, word [ebx + 8]
mov word [ebp - 0xa], ax
mov al, byte [ebx + 0xa]
mov byte [ebp - 8], al
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x710512c1
movq qword [ebp - 0x12], xmm0
push 0x12
push eax
push dword [ebp + 0xc]
call fcn.0041c330
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 8