Function at 0x47bf80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f8aae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x58]
call fcn.0044a000
xor edi, edi
lea ecx, [esp + 0xf0]
push edi
mov dword [esp + 0x110], edi
call fcn.0044e9a0
lea ecx, [esp + 0x40]
mov byte [esp + 0x10c], 1
call fcn.00463770
lea ecx, [esp + 0x34]
mov byte [esp + 0x10c], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x30]
mov byte [esp + 0x10c], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x38]
mov byte [esp + 0x10c], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x10c], 6
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x38]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x34]
mov bl, 7
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x118], bl
call fcn.00466ee0
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x114], 8
mov ecx, esp
mov dword [esp + 0x30], esp
push str.farmKey
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x48]
mov byte [esp + 0x114], bl
call fcn.004637f0
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x114], 9
mov ecx, esp
mov dword [esp + 0x18], esp
push str.farmTime
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x48]
mov byte [esp + 0x114], bl
call fcn.004637f0
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x114], 0xa
mov ecx, esp
mov dword [esp + 0x18], esp
push str.pastureKey
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x48]
mov byte [esp + 0x114], bl
call fcn.004637f0
mov ecx, dword [esi + 0x5c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.uIdx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x48]
call fcn.00463980
lea edx, [esp + 0x10]
lea ecx, [esp + 0x40]
push edx
call fcn.004637d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x110], 0xb
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x10c], bl
call sub.MFC42.DLL_CString::CString
push 1
push 1
push 1
lea ecx, [esp + 0x20]
call fcn.00404830
push eax
push edi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x5366d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov ecx, dword [esi + 0x88]
mov eax, esp
mov dword [esp + 0x11c], esp
push edi
push 0x1a
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x138], 0xc
call fcn.00475130
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
mov byte [esp + 0x12c], bl
call fcn.0046da00
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x110], 0xd
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x10c], bl
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
push edi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov al, byte [esp + 0x3f]
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::max_size_void_const]
cmp eax, ebp
jae 0x47c213
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edx, dword [esp + 0x1c]
xor edi, edi
cmp edx, edi
je 0x47c23e
mov al, byte [edx - 1]
test al, al
je 0x47c23e
cmp al, 0xff
je 0x47c23e
cmp ebp, edi
jne 0x47c269
dec al
push edi
lea ecx, [esp + 0x1c]
mov byte [edx - 1], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x47c297
cmp ebp, edi
jne 0x47c250
push 1
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x47c297
mov eax, dword [esp + 0x24]
cmp eax, 0x1f
ja 0x47c25d
cmp eax, ebp
jae 0x47c278
push 1
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebp
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edx, dword [esp + 0x1c]
mov ecx, ebp
mov edi, edx
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
xor edi, edi
lea eax, [esp + 0xf0]
push 1
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x118], 0xe
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x10c], bl
mov ebp, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x47c2ea
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47c2e1
cmp al, 0xff
je 0x47c2e1
dec al
mov byte [ecx], al
jmp 0x47c2ea
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp ebp, edi
je 0x47c33e
push str.is_playing
lea ecx, [esp + 0xf4]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
test eax, eax
je 0x47c33c
push str.number
lea ecx, [esp + 0xf4]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
test eax, eax
je 0x47c33c
mov ebp, 1
jmp 0x47c33e
xor ebp, ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0x10c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x10c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x10c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x10c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x10c], 1
call fcn.004637b0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x10c], 0
call fcn.0044eec0
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x10c], 0xf
cmp eax, edi
je 0x47c3eb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47c3e2
cmp al, 0xff
je 0x47c3e2
dec al
mov byte [ecx], al
jmp 0x47c3eb
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xe0], edi
cmp eax, edi
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], edi
je 0x47c428
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47c41f
cmp al, 0xff
je 0x47c41f
dec al
mov byte [ecx], al
jmp 0x47c428
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xbc], edi
cmp eax, edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], edi
je 0x47c56a
mov ecx, dword [esp + 0x94]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0x98], ecx
lea ecx, [eax + 0xc]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0xb4]
dec eax
mov dword [esp + 0xb4], eax
je 0x47c491
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
cmp edx, eax
jne 0x47c55d
mov eax, dword [esp + 0x98]
mov ecx, eax
add eax, 4
mov dword [esp + 0x98], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xb8]
add esp, 4
cmp eax, edi
jne 0x47c51d
lea ecx, [esp + 0x18]
call fcn.004051c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x90], ecx
push eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x47c55d
mov eax, dword [esp + 0x98]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x50]
call fcn.0042c610
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
cmp dword [esp + 0xb4], edi
jne 0x47c44c
mov eax, dword [esp + 0x84]
mov dword [esp + 0x10c], 0xffffffff
cmp eax, edi
je 0x47c640
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x84]
add esi, 4
dec ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x84], ecx
je 0x47c5ae
cmp esi, dword [esp + 0x60]
jne 0x47c633
mov ecx, eax
add eax, 4
mov dword [esp + 0x68], eax
mov edx, dword [ecx]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x88]
add esp, 4
cmp eax, edi
jne 0x47c61d
lea ecx, [esp + 0x48]
call fcn.004051c0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x60], ecx
push eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], esi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
add esp, 4
jmp 0x47c633
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov esi, ecx
mov dword [esp + 0x5c], ecx
lea edx, [ecx + 0x1000]
mov dword [esp + 0x60], edx
cmp dword [esp + 0x84], edi
jne 0x47c58c
mov ecx, dword [esp + 0x104]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x100
ret