Function at 0x474db0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x4f7f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x536d10]
push ebx
push ebp
push esi
push edi
lea edi, [eax + 0x17c]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0xcc]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [edi + 0xcc]
mov dword [esp + 0x3c], 0
test eax, eax
je 0x475023
mov ebp, dword [esp + 0x44]
lea eax, [esp + 0x10]
mov edx, dword [ebp + 0x18]
push edx
push str.SELECT__FROM_RanchStatus_WHERE_UserId_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ebx, 1
lea ecx, [edi + 0x9d0]
lea edx, [esp + 0x10]
push ebx
push 2
push 3
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea esi, [edi + 0x9dc]
mov ecx, esi
call fcn.00401980
test eax, eax
jne 0x474e5a
mov dword [esp + 0x14], eax
jmp 0x475023
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, esi
mov byte [esp + 0x3c], bl
call fcn.00402290
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
je 0x475002
mov edx, dword [ebp + 0x150]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
push ecx
mov ecx, edi
call fcn.0041de80
push ecx
mov byte [esp + 0x50], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push str.CollectTime
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402020
mov ecx, dword [ebp + 0x148]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x54], esp
push ecx
push eax
mov ecx, edi
call fcn.0041de80
push ecx
mov byte [esp + 0x50], 3
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Food
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402020
mov eax, dword [ebp + 0x18]
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x54], esp
push eax
push edx
mov ecx, edi
call fcn.0041de80
push ecx
mov byte [esp + 0x50], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UserId
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402020
mov edx, dword [ebp + 0x8c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
push ecx
mov ecx, edi
call fcn.0041de80
push ecx
mov byte [esp + 0x50], 5
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Guard
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402020
add ebp, 0x48
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x30], esp
push ecx
mov dword [esp + 0x30], ebp
mov eax, esp
mov dword [esp + 0x58], esp
push ebp
mov ecx, dword [esp + 0x30]
push eax
mov dword [esp + 0x60], edx
call fcn.00474bd0
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, edi
call fcn.0041ddb0
push ecx
mov byte [esp + 0x50], 6
mov ecx, esp
mov dword [esp + 0x58], esp
push str.AnimalList
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402020
mov eax, dword [esp + 0x1c]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, esp
mov dword [esp + 0x34], esp
push eax
push edx
call fcn.00474cd0
push ebp
mov ecx, edi
call fcn.0041ddb0
push ecx
mov byte [esp + 0x50], 7
mov ecx, esp
mov dword [esp + 0x34], esp
push str.StealList
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.00402020
mov ecx, esi
call fcn.00402400
mov ecx, esi
call fcn.004025d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x475023
push eax
call fcn.004e9ff0
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 4