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

Disassembly:
push 0xffffffffffffffff
push 0x4ffc0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_4
xor edi, edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x13c], edi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x88]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 4
call fcn.00463770
lea ecx, [esp + 0x60]
mov byte [esp + 0x13c], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x64]
mov byte [esp + 0x13c], 6
call sub.MFC42.DLL_CString::CString_4
push edi
lea ecx, [esp + 0x128]
mov byte [esp + 0x140], 7
mov dword [esp + 0x14], edi
call fcn.0044e9a0
push edi
lea ecx, [esp + 0x7c]
mov byte [esp + 0x140], 8
call fcn.0044e9a0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x13c], 9
call fcn.0044a000
mov edx, dword [0x536d10]
push edi
lea eax, [esp + 0x38]
push edi
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [edx + 0x17c]
mov byte [esp + 0x14c], 0xa
call fcn.0040f9f0
mov eax, dword [ebx + 0x58]
cmp dword [eax + 0x58], 1
jne 0x4d5fb0
mov eax, dword [eax + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x52631c
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
call fcn.00463980
mov ecx, dword [ebx + 0x58]
mov edx, dword [ecx + 0x20]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.uIdx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
call fcn.00463980
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x144], 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.farmKey
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x144], 0xa
call fcn.004637f0
mov ecx, dword [esp + 0x144]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x525f58
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
call fcn.00463980
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x144], 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.farmTime
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x144], 0xa
call fcn.004637f0
mov esi, dword [esp + 0x148]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.slotid
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
call fcn.00463980
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
call fcn.004637d0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 0xd
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xa
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x536d10]
push 1
add ecx, 0x17c
push 1
mov edx, dword [ecx]
call dword [edx + 4]
push 1
push 1
push 1
lea ecx, [esp + 0x2c]
call fcn.00404830
push eax
push edi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x530ac0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebx + 0x58]
mov byte [esp + 0x154], 0xe
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x58]
xor ecx, esi
push ecx
mov edx, esp
mov dword [esp + 0x40], esp
push ecx
push 7
push eax
push edx
mov ecx, ebx
call fcn.004ce0e0
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 0xa
push ecx
mov ecx, ebx
call fcn.004d34a0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 0xf
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xa
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x536d10]
push 1
push edi
mov eax, dword [edx + 0x17c]
lea ecx, [edx + 0x17c]
call dword [eax + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x3b]
mov esi, eax
mov byte [esp + 0x40], cl
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x44]
push ebp
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 0x4d61dc
mov edi, dword [esp + 0x44]
mov ecx, ebp
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 + 0x44]
mov dword [esp + 0x48], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x124]
push 1
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x98]
mov byte [esp + 0x148], 0x10
call fcn.0044a090
and eax, 0xff
xor edi, edi
mov ebp, eax
mov eax, dword [esp + 0x44]
cmp eax, edi
mov dword [esp + 0x28], ebp
mov byte [esp + 0x13c], 0xa
je 0x4d6239
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d6230
cmp al, 0xff
je 0x4d6230
dec al
mov byte [ecx], al
jmp 0x4d6239
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp ebp, edi
je 0x4d6363
push str.beast
lea ecx, [esp + 0x128]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x7c]
call fcn.0044f040
lea ecx, [esp + 0x78]
call fcn.0044f140
xor ecx, ecx
cmp eax, 7
sete cl
mov eax, ecx
cmp eax, edi
mov dword [esp + 0x28], eax
jne 0x4d62e9
push str.direction
lea ecx, [esp + 0x128]
call fcn.0044fea0
lea edx, [esp + 0x14]
push eax
push edx
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x140], 0x11
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x60]
push 0x5307a8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4d62e9
push 0x5266e0
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::operator_3
mov ebp, dword [esp + 0x28]
mov ecx, dword [0x536d10]
push edi
add ecx, 0x17c
lea edx, [esp + 0x20]
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.004d41b0
push 0x5307a8
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator_3
cmp ebp, edi
je 0x4d6600
push str.money
lea ecx, [esp + 0x128]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [ebx + 0x58]
lea esi, [ebx + 0x48]
add esp, 4
mov edx, dword [ecx + 0x38]
add edx, eax
mov dword [ecx + 0x38], edx
mov eax, dword [ebx + 0x58]
mov edx, dword [0x536d10]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0xddc], ecx
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4d6376
xor eax, eax
jmp 0x4d638d
push 0x5266d4
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::operator_3
jmp 0x4d62ed
mov eax, dword [esi + 8]
sub eax, ecx
mov ecx, dword [esp + 0x148]
sar eax, 2
cmp eax, ecx
ja 0x4d6519
mov ebp, dword [esp + 0x148]
sub ebp, eax
inc ebp
mov dword [esp + 0x14], ebp
push 0x5c
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x17
xor eax, eax
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edi, dword [ebx + 0x50]
sub ecx, eax
sar ecx, 2
add esp, 4
cmp ecx, 1
jae 0x4d647e
mov ecx, esi
call fcn.004a9270
cmp eax, 1
jbe 0x4d63e2
mov ecx, esi
call fcn.004a9270
mov ebp, eax
jmp 0x4d63e7
mov ebp, 1
mov ecx, esi
call fcn.004a9270
add eax, ebp
mov dword [esp + 0x18], eax
jns 0x4d63f8
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004b1440
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.004b1410
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 8]
add edx, 4
mov ecx, esi
push edx
push eax
push edi
call fcn.004b1440
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.004a9290
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x1c]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.004a9270
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x14]
mov dword [esi + 8], edx
jmp 0x4d650a
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x4d64cc
lea edx, [edi + 4]
mov ecx, esi
push edx
push eax
push edi
call fcn.004b1440
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.004b1410
mov eax, dword [esi + 8]
cmp edi, eax
je 0x4d6506
mov edx, dword [esp + 0x10]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x4d64bd
jmp 0x4d6506
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004b1440
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x4d64f2
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x4d64e3
lea eax, [edi + 4]
cmp edi, eax
je 0x4d6506
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x4d64f9
add dword [esi + 8], 4
dec ebp
mov dword [esp + 0x14], ebp
jne 0x4d639b
mov ebp, dword [esp + 0x28]
mov eax, dword [ebx + 0x4c]
mov edx, dword [esp + 0x148]
push str.adopttime
lea ecx, [esp + 0x7c]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x14], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x4c], eax
push str.status
lea ecx, [esp + 0x7c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x78]
push 0x525f58
mov dword [edx + 0x3c], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x28], eax
push str.returntime
lea ecx, [esp + 0x7c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x78]
push str.raisenum
mov dword [edx + 0x54], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x48], eax
mov edx, dword [esp + 0x10]
mov dword [edx], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
push ecx
mov ecx, ebx
call fcn.004d73e0
test eax, eax
je 0x4d65f3
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x44], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x44]
mov dword [eax + 0x40], ecx
jmp 0x4d65fe
mov edx, dword [esp + 0x10]
mov dword [edx + 0x44], 1
xor edi, edi
mov esi, dword [esp + 0x14c]
cmp esi, edi
je 0x4d6640
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x74]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x114]
mov byte [esp + 0x13c], 0x12
cmp eax, edi
je 0x4d6670
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d6667
cmp al, 0xff
je 0x4d6667
dec al
mov byte [ecx], al
jmp 0x4d6670
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x114], edi
cmp eax, edi
mov dword [esp + 0x118], edi
mov dword [esp + 0x11c], edi
je 0x4d66ad
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d66a4
cmp al, 0xff
je 0x4d66a4
dec al
mov byte [ecx], al
jmp 0x4d66ad
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xf0], edi
cmp eax, edi
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf8], edi
je 0x4d67ef
mov ecx, dword [esp + 0xc8]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xcc], 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 + 0xe8]
dec eax
mov dword [esp + 0xe8], eax
je 0x4d6716
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
cmp eax, ecx
jne 0x4d67e2
mov eax, dword [esp + 0xcc]
mov ecx, eax
add eax, 4
mov dword [esp + 0xcc], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xec]
add esp, 4
cmp eax, edi
jne 0x4d67a2
lea ecx, [esp + 0x40]
call fcn.004051c0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0xc0], eax
push ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], eax
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4d67e2
mov eax, dword [esp + 0xcc]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x58]
call fcn.0042c610
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
cmp dword [esp + 0xe8], edi
jne 0x4d66d1
mov eax, dword [esp + 0xb8]
mov byte [esp + 0x13c], 9
cmp eax, edi
je 0x4d68fd
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0xb8]
add ecx, 4
dec eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0xb8], eax
je 0x4d6839
mov eax, ecx
mov ecx, dword [esp + 0x94]
cmp eax, ecx
jne 0x4d68f0
mov ecx, dword [esp + 0x9c]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x9c], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xbc]
add esp, 4
cmp eax, edi
jne 0x4d68c5
lea ecx, [esp + 0x50]
call fcn.004051c0
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x90], eax
push ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], eax
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4d68f0
mov ecx, dword [esp + 0x9c]
mov eax, dword [ecx]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x98], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x94], edx
cmp dword [esp + 0xb8], edi
jne 0x4d6806
lea ecx, [esp + 0x78]
mov byte [esp + 0x13c], 8
call fcn.0044eec0
lea ecx, [esp + 0x124]
mov byte [esp + 0x13c], 7
call fcn.0044eec0
lea ecx, [esp + 0x64]
mov byte [esp + 0x13c], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x13c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 4
call fcn.004637b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x88]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x13c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x134]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret 0xc