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

Disassembly:
push 0xffffffffffffffff
push 0x4ffe57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x128], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x60]
mov byte [esp + 0x128], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x128], 4
call fcn.00463770
lea ecx, [esp + 0x48]
mov byte [esp + 0x128], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x128], 6
call sub.MFC42.DLL_CString::CString_4
push ebx
lea ecx, [esp + 0x110]
mov byte [esp + 0x12c], 7
xor esi, esi
mov dword [esp + 0x48], ebx
call fcn.0044e9a0
push ebx
lea ecx, [esp + 0x100]
mov byte [esp + 0x12c], 8
call fcn.0044e9a0
lea ecx, [esp + 0x64]
mov byte [esp + 0x128], 9
call fcn.0044a000
mov edx, dword [0x536d10]
push ebx
lea eax, [esp + 0x44]
push ebx
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [edx + 0x17c]
mov byte [esp + 0x138], 0xa
call fcn.0040f9f0
mov eax, dword [ebp + 0x58]
mov ecx, dword [eax + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.uIdx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
call fcn.00463980
mov eax, dword [ebp + 0x58]
cmp dword [eax + 0x58], 1
jne 0x4d7ea0
mov edx, dword [eax + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x52631c
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
call fcn.00463980
mov eax, dword [ebp + 0x4c]
mov edi, dword [esp + 0x130]
cmp eax, ebx
je 0x4d7ec4
mov ecx, dword [ebp + 0x50]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x4d7ec4
mov eax, dword [eax + edi*4]
mov dword [esp + 0x44], eax
mov esi, dword [eax + 0x28]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.slotid
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
call fcn.00463980
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x130], 0xb
mov ecx, esp
mov dword [esp + 0x40], esp
push str.farmTime
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x130], 0xa
call fcn.004637f0
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x525f58
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
call fcn.00463980
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x130], 0xc
mov ecx, esp
mov dword [esp + 0x18], esp
push str.farmKey
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x130], 0xa
call fcn.004637f0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.004637d0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 0xd
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 0xa
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x536d10]
push 1
push 1
mov eax, dword [edx + 0x17c]
lea ecx, [edx + 0x17c]
call dword [eax + 4]
push 1
push 1
push 1
lea ecx, [esp + 0x24]
call fcn.00404830
push eax
push ebx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x530ac0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x58]
mov byte [esp + 0x140], 0xe
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x58]
xor ecx, edi
push ecx
mov edx, esp
mov dword [esp + 0x138], esp
push ecx
push 0xa
push eax
push edx
mov ecx, ebp
call fcn.004ce0e0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x144], 0xa
push ecx
mov ecx, ebp
call fcn.004d34a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 0xf
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 0xa
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x536d10]
push 1
push ebx
mov eax, dword [edx + 0x17c]
lea ecx, [edx + 0x17c]
call dword [eax + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
push ebx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x3f]
mov esi, eax
mov byte [esp + 0x1c], cl
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4d80c8
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x10c]
push 1
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 0x10
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x128], 0xa
mov ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4d811c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d8113
cmp al, 0xff
je 0x4d8113
dec al
mov byte [ecx], al
jmp 0x4d811c
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
test ebx, ebx
je 0x4d81d8
push str.money
lea ecx, [esp + 0x110]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x100]
call fcn.0044f040
lea ecx, [esp + 0xfc]
call fcn.0044f140
cmp eax, 1
je 0x4d81d1
lea ecx, [esp + 0xfc]
call fcn.0044f140
cmp eax, 2
je 0x4d81d1
push str.direction
lea ecx, [esp + 0x110]
xor ebx, ebx
call fcn.0044fea0
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x12c], 0x11
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 0xa
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x48]
push 0x5307a8
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4d81e6
push 0x5266e0
jmp 0x4d81dd
mov ebx, 1
jmp 0x4d81e6
push 0x5266d4
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::operator_3
mov edx, dword [0x536d10]
push 0
add edx, 0x17c
lea eax, [esp + 0x18]
push edx
push eax
push ebx
mov ecx, ebp
call fcn.004d41b0
push 0x5307a8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_3
test ebx, ebx
je 0x4d8252
lea ecx, [esp + 0xfc]
push ecx
call fcn.0040c7d0
mov ecx, dword [ebp + 0x58]
mov edi, dword [esp + 0x48]
add esp, 4
mov edx, dword [ecx + 0x38]
add edx, eax
mov dword [ecx + 0x38], edx
mov edx, dword [ebp + 0x58]
mov ecx, dword [0x536d10]
mov eax, dword [edx + 0x38]
test edi, edi
mov dword [ecx + 0xddc], eax
je 0x4d8252
mov ecx, 0x17
xor eax, eax
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x134]
xor edi, edi
cmp esi, edi
je 0x4d8294
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x4c]
lea ecx, [esi + 4]
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0xec]
mov byte [esp + 0x128], 0x12
cmp ecx, edi
je 0x4d82c2
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4d82b9
cmp al, 0xff
je 0x4d82b9
dec al
mov byte [ecx], al
jmp 0x4d82c2
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0xec], edi
cmp ecx, edi
mov dword [esp + 0xf0], edi
mov dword [esp + 0xf4], edi
je 0x4d82fd
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4d82f4
cmp al, 0xff
je 0x4d82f4
dec al
mov byte [ecx], al
jmp 0x4d82fd
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc8], edi
cmp eax, edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], edi
je 0x4d842a
mov ecx, dword [esp + 0xa0]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xa4], 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 + 0xc0]
dec eax
mov dword [esp + 0xc0], eax
je 0x4d8366
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
cmp edx, eax
jne 0x4d841d
mov eax, dword [esp + 0xa4]
mov ecx, eax
add eax, 4
mov dword [esp + 0xa4], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xc4]
add esp, 4
cmp eax, edi
jne 0x4d83f2
lea ecx, [esp + 0x1c]
call fcn.004051c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x98], eax
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x9c], ecx
push eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4d841d
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x9c], edx
cmp dword [esp + 0xc0], edi
jne 0x4d8321
mov eax, dword [esp + 0x90]
mov byte [esp + 0x128], 9
cmp eax, edi
je 0x4d8507
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x90]
add ecx, 4
dec eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x90], eax
je 0x4d8467
cmp ecx, dword [esp + 0x6c]
jne 0x4d84fa
mov ecx, dword [esp + 0x74]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x74], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x94]
add esp, 4
cmp eax, edi
jne 0x4d84de
lea ecx, [esp + 0x1c]
call fcn.004051c0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x70], edx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x68], eax
push edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4d84fa
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x6c], edx
cmp dword [esp + 0x90], edi
jne 0x4d8441
lea ecx, [esp + 0xfc]
mov byte [esp + 0x128], 8
call fcn.0044eec0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x128], 7
call fcn.0044eec0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x128], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x128], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x128], 4
call fcn.004637b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x128], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x128], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x128], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x120]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x11c
ret 8