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

Disassembly:
push 0xffffffffffffffff
push 0x4ff870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x138], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 3
call fcn.00463770
lea ecx, [esp + 0x3c]
mov byte [esp + 0x138], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x40]
mov byte [esp + 0x138], 5
call sub.MFC42.DLL_CString::CString_4
push ebx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x13c], 6
xor edi, edi
call fcn.0044e9a0
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x13c], 7
call fcn.0044e9a0
push ebx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x13c], 8
call fcn.0044e9a0
lea ecx, [esp + 0x98]
mov byte [esp + 0x138], 9
call fcn.0044a000
mov eax, dword [ebp + 0x4c]
mov esi, dword [esp + 0x140]
cmp eax, ebx
mov byte [esp + 0x138], 0xa
je 0x4d3678
mov ecx, dword [ebp + 0x50]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x4d3678
mov edx, dword [eax + esi*4]
mov edi, dword [edx + 0x28]
mov edx, dword [0x536d10]
push ebx
lea eax, [esp + 0x30]
push ebx
lea ecx, [esp + 0x40]
push eax
push ecx
lea ecx, [edx + 0x17c]
call fcn.0040f9f0
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x140], 0xb
mov ecx, esp
mov dword [esp + 0x20], esp
push str.farmKey
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x140], 0xa
call fcn.004637f0
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x140], 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push str.farmTime
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x140], 0xa
call fcn.004637f0
mov eax, dword [ebp + 0x58]
cmp dword [eax + 0x58], 1
jne 0x4d3757
mov ecx, dword [0x536d10]
push ecx
lea edx, [ecx + 0xb40]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x140], 0xd
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x52631c
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x140], 0xa
call fcn.004637f0
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x525f58
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
call fcn.00463980
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.slotid
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
call fcn.00463980
mov eax, dword [ebp + 0x58]
mov ecx, dword [eax + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.uIdx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
call fcn.00463980
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
call fcn.004637d0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x13c], 0xe
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x536d10]
push 1
push 1
mov edx, dword [eax + 0x17c]
lea ecx, [eax + 0x17c]
call dword [edx + 4]
push 1
push 1
push 1
lea ecx, [esp + 0x2c]
call fcn.00404830
push eax
push ebx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x530ac0
call sub.MFC42.DLL_CString::CString_3
push ecx
mov ecx, dword [ebp + 0x58]
mov eax, esp
mov dword [esp + 0x34], esp
mov edx, dword [ecx + 0x58]
push esi
push 4
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x164], 0xf
call fcn.004ce0e0
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
mov byte [esp + 0x158], 0xa
call fcn.004d34a0
mov byte [esp + 0x138], 0x10
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0xa
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x536d10]
push 1
add ecx, 0x17c
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov al, byte [esp + 0x33]
mov byte [esp + 0x54], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x58]
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 0x4d38f9
mov edi, dword [esp + 0x58]
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 + 0x58]
mov dword [esp + 0x5c], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x78]
push 1
lea edx, [esp + 0x58]
push ecx
push edx
lea ecx, [esp + 0xa4]
mov byte [esp + 0x144], 0x11
call fcn.0044a090
and eax, 0xff
xor esi, esi
mov edi, eax
mov eax, dword [esp + 0x58]
cmp eax, esi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x138], 0xa
je 0x4d3953
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d394a
cmp al, 0xff
je 0x4d394a
dec al
mov byte [ecx], al
jmp 0x4d3953
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp edi, esi
je 0x4d39f6
push str.drop
lea ecx, [esp + 0x7c]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x6c]
call fcn.0044f040
lea ecx, [esp + 0x68]
call fcn.0044f140
xor ecx, ecx
cmp eax, 6
sete cl
mov eax, ecx
cmp eax, esi
mov dword [esp + 0x1c], eax
jne 0x4d3a04
push str.direction
lea ecx, [esp + 0x7c]
call fcn.0044fea0
lea edx, [esp + 0x34]
push eax
push edx
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x13c], 0x12
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x138], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x3c]
push 0x5307a8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4d3a04
push 0x5266e0
jmp 0x4d39fb
push 0x5266d4
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [0x536d10]
mov edi, dword [esp + 0x1c]
add ecx, 0x17c
push esi
lea edx, [esp + 0x14]
push ecx
push edx
push edi
mov ecx, ebp
call fcn.004d41b0
push 0x5307a8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_3
cmp edi, esi
je 0x4d3d20
lea ecx, [esp + 0x68]
call fcn.0044fc80
test eax, eax
je 0x4d3a54
push 0x52b860
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x68]
call fcn.0044fc80
test eax, eax
jbe 0x4d3ba8
mov bl, 0x15
push esi
lea ecx, [esp + 0x6c]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x8c]
call fcn.0044f040
lea ecx, [esp + 0x88]
call fcn.0044f140
cmp eax, 7
jne 0x4d3ba8
test esi, esi
je 0x4d3aa5
push 0x523ca0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x526028
lea ecx, [esp + 0x8c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x88]
push eax
push 0x525f58
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
mov ecx, ebp
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004cf840
mov edi, eax
push 0x526044
lea ecx, [esp + 0x8c]
mov byte [esp + 0x13c], 0x13
call fcn.0044fea0
push eax
call fcn.0040c7d0
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0040a7e0
add esp, 0xc
push 0x526610
lea edx, [esp + 0x68]
push eax
push edx
mov byte [esp + 0x144], 0x14
call sub.MFC42.DLL_operator_4
push edi
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x140], bl
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0x16
call fcn.004e96da
lea ecx, [esp + 0x34]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
mov byte [esp + 0x138], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
inc esi
call fcn.0044fc80
cmp esi, eax
jb 0x4d3a67
push str.money
lea ecx, [esp + 0x7c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov esi, eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x50], esi
add esp, 4
mov ecx, dword [eax + 0x38]
add ecx, esi
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp + 0x58]
mov eax, dword [0x536d10]
mov edx, dword [ecx + 0x38]
test esi, esi
mov dword [eax + 0xddc], edx
je 0x4d3c64
mov ecx, dword [esp + 0x10]
push 0x5307a8
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4d3c0a
push 0x523ca0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0040a7e0
add esp, 8
push 0x526cfc
push eax
lea eax, [esp + 0x1c]
mov bl, 0x17
push eax
mov byte [esp + 0x144], bl
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0x18
call fcn.004e96da
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 0xa
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0x5307a8
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4d3c89
push 0x525ff0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str.moralexp
lea ecx, [esp + 0x7c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov esi, dword [0x536614]
push eax
add esi, eax
mov dword [0x536614], esi
mov ebp, dword [ebp + 0x58]
mov edx, dword [ebp + 0x30]
add edx, eax
mov dword [ebp + 0x30], edx
lea edx, [esp + 0x20]
push edx
call fcn.0040a7e0
add esp, 0xc
push eax
lea eax, [esp + 0x18]
mov bl, 0x19
push 0x52f3f0
push eax
mov byte [esp + 0x144], bl
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0x1a
call fcn.004e96da
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::operator_2
xor esi, esi
mov edi, dword [esp + 0x144]
cmp edi, esi
je 0x4d3d60
lea edx, [esp + 0x3c]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x40]
lea ecx, [edi + 4]
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x120]
mov byte [esp + 0x138], 0x1b
cmp ecx, esi
je 0x4d3d8e
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4d3d85
cmp al, 0xff
je 0x4d3d85
dec al
mov byte [ecx], al
jmp 0x4d3d8e
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x120], esi
cmp ecx, esi
mov dword [esp + 0x124], esi
mov dword [esp + 0x128], esi
je 0x4d3dc9
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4d3dc0
cmp al, 0xff
je 0x4d3dc0
dec al
mov byte [ecx], al
jmp 0x4d3dc9
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xf4]
mov dword [esp + 0xfc], esi
cmp eax, esi
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], esi
je 0x4d3ee3
mov ecx, dword [esp + 0xd4]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xd8], 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 + 0xf4]
dec eax
mov dword [esp + 0xf4], eax
je 0x4d3e32
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
cmp edx, eax
jne 0x4d3ed6
mov eax, dword [esp + 0xd8]
mov ecx, eax
add eax, 4
mov dword [esp + 0xd8], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xf8]
add esp, 4
cmp eax, esi
jne 0x4d3eab
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xec]
xor edx, edx
push eax
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edx
mov dword [esp + 0xec], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4d3ed6
mov ecx, dword [esp + 0xd8]
mov eax, dword [ecx]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd4], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xd0], edx
cmp dword [esp + 0xf4], esi
jne 0x4d3ded
cmp dword [esp + 0xc4], esi
je 0x4d3fd2
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xc4]
add ecx, 4
dec eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xc4], eax
je 0x4d3f1f
cmp ecx, dword [esp + 0xa0]
jne 0x4d3fc5
mov ecx, dword [esp + 0xa8]
mov eax, ecx
add ecx, 4
mov dword [esp + 0xa8], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xc8]
add esp, 4
cmp eax, esi
jne 0x4d3f9a
xor edx, edx
xor eax, eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0xbc]
xor ecx, ecx
push edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xbc], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor esi, esi
jmp 0x4d3fc5
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa4], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xa0], edx
cmp dword [esp + 0xc4], esi
jne 0x4d3ef0
lea ecx, [esp + 0x88]
mov byte [esp + 0x138], 8
call fcn.0044eec0
lea ecx, [esp + 0x68]
mov byte [esp + 0x138], 7
call fcn.0044eec0
lea ecx, [esp + 0x78]
mov byte [esp + 0x138], 6
call fcn.0044eec0
lea ecx, [esp + 0x40]
mov byte [esp + 0x138], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x138], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 3
call fcn.004637b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x12c
ret 8