Function at 0x4d85e0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4fff52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_4
xor edi, edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x134], edi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 4
call fcn.00463770
lea ecx, [esp + 0x44]
mov byte [esp + 0x134], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x48]
mov byte [esp + 0x134], 6
call sub.MFC42.DLL_CString::CString_4
push edi
lea ecx, [esp + 0x11c]
mov byte [esp + 0x138], 7
call fcn.0044e9a0
push edi
lea ecx, [esp + 0x10c]
mov byte [esp + 0x138], 8
call fcn.0044e9a0
push edi
lea ecx, [esp + 0x64]
mov byte [esp + 0x138], 9
call fcn.0044e9a0
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 0xa
call fcn.0044a000
mov edx, dword [0x536d10]
push edi
lea eax, [esp + 0x34]
push edi
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [edx + 0x17c]
mov byte [esp + 0x144], 0xb
call fcn.0040f9f0
push 0xa
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x525f58
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
call fcn.00463980
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x13c], 0xc
mov ecx, esp
mov dword [esp + 0x18], esp
push str.farmKey
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], 0xb
call fcn.004637f0
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x13c], 0xd
mov ecx, esp
mov dword [esp + 0x18], esp
push str.farmTime
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], 0xb
call fcn.004637f0
mov eax, dword [ebp + 0x58]
mov esi, 1
cmp dword [eax + 0x58], esi
jne 0x4d87b1
mov eax, dword [eax + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x52631c
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
call fcn.00463980
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx + 0x20]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.uIdx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
call fcn.00463980
mov eax, dword [ebp + 0x58]
cmp dword [eax + 0x58], esi
jne 0x4d87f8
mov eax, dword [eax + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x526324
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
call fcn.00463980
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.004637d0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 0xe
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0xb
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x536d10]
push esi
push esi
mov eax, dword [edx + 0x17c]
lea ecx, [edx + 0x17c]
call dword [eax + 4]
push esi
push esi
push esi
lea ecx, [esp + 0x28]
call fcn.00404830
push eax
push edi
lea ecx, [esp + 0x30]
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
mov eax, dword [ebp + 0x58]
push ecx
mov ecx, esp
mov dword [esp + 0x144], esp
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x58]
push edx
push 0xb
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x160], 0xf
call fcn.004ce0e0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 0xb
push ecx
mov ecx, ebp
call fcn.004d34a0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0x10
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0xb
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x536d10]
push esi
push edi
mov eax, dword [edx + 0x17c]
lea ecx, [edx + 0x17c]
call dword [eax + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x2f]
mov esi, eax
mov byte [esp + 0x34], cl
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x38]
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 0x4d8948
mov edi, dword [esp + 0x38]
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 + 0x38]
mov dword [esp + 0x3c], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x118]
push 1
lea edx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x140], 0x11
call fcn.0044a090
and eax, 0xff
xor esi, esi
mov edi, eax
mov eax, dword [esp + 0x38]
cmp eax, esi
mov dword [esp + 0x10], edi
mov byte [esp + 0x134], 0xb
je 0x4d89a2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d8999
cmp al, 0xff
je 0x4d8999
dec al
mov byte [ecx], al
jmp 0x4d89a2
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp edi, esi
je 0x4d8a51
push str.info
lea ecx, [esp + 0x11c]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x10c]
call fcn.0044f040
lea ecx, [esp + 0x108]
call fcn.0044f140
xor ecx, ecx
cmp eax, 6
sete cl
mov eax, ecx
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x4d8a5f
push str.direction
lea ecx, [esp + 0x11c]
call fcn.0044fea0
lea edx, [esp + 0x14]
push eax
push edx
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x138], 0x12
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x44]
push 0x5307a8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4d8a5f
push 0x5266e0
jmp 0x4d8a56
push 0x5266d4
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [0x536d10]
mov edi, dword [esp + 0x10]
add ecx, 0x17c
push esi
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
mov ecx, ebp
call fcn.004d41b0
push 0x5307a8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_3
cmp edi, esi
je 0x4d8b57
lea ecx, [esp + 0x108]
call fcn.0044fc80
mov ebx, eax
xor ecx, ecx
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x4d8ac4
mov edx, dword [ebp + 0x20]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x4d8ac4
mov eax, dword [eax + ecx*4]
cmp dword [eax], esi
je 0x4d8ac1
mov dword [eax + 0x24], esi
inc ecx
jmp 0x4d8aa4
test ebx, ebx
jle 0x4d8b55
push esi
lea ecx, [esp + 0x10c]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x64]
call fcn.0044f040
lea ecx, [esp + 0x60]
call fcn.0044f140
cmp eax, 7
jne 0x4d8b4c
push 0x525f58
lea ecx, [esp + 0x64]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
cmp eax, 0xa
jne 0x4d8b4c
push 0x526028
lea ecx, [esp + 0x64]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
mov ecx, ebp
push eax
call fcn.004d7420
mov edi, eax
test edi, edi
je 0x4d8b4c
push 0x526044
lea ecx, [esp + 0x64]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
mov dword [edi + 0x24], eax
inc esi
cmp esi, ebx
jl 0x4d8acc
xor esi, esi
mov edi, dword [esp + 0x13c]
cmp edi, esi
je 0x4d8b97
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x48]
lea ecx, [edi + 4]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0xf8]
mov byte [esp + 0x134], 0x13
cmp eax, esi
je 0x4d8bc7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d8bbe
cmp al, 0xff
je 0x4d8bbe
dec al
mov byte [ecx], al
jmp 0x4d8bc7
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xf8], esi
cmp eax, esi
mov dword [esp + 0xfc], esi
mov dword [esp + 0x100], esi
je 0x4d8c04
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d8bfb
cmp al, 0xff
je 0x4d8bfb
dec al
mov byte [ecx], al
jmp 0x4d8c04
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xd4], esi
cmp eax, esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], esi
je 0x4d8d31
mov ecx, dword [esp + 0xac]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xb0], 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 + 0xcc]
dec eax
mov dword [esp + 0xcc], eax
je 0x4d8c6d
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
cmp ecx, eax
jne 0x4d8d24
mov eax, dword [esp + 0xb0]
mov ecx, eax
add eax, 4
mov dword [esp + 0xb0], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xd0]
add esp, 4
cmp eax, esi
jne 0x4d8cf9
lea ecx, [esp + 0x34]
call fcn.004051c0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
mov dword [esp + 0xac], edx
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xa4], eax
push edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc4], edi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4d8d24
mov ecx, dword [esp + 0xb0]
mov eax, dword [ecx]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xac], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xa8], edx
cmp dword [esp + 0xcc], esi
jne 0x4d8c28
cmp dword [esp + 0x9c], esi
je 0x4d8e0c
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x9c]
add ecx, 4
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x9c], eax
je 0x4d8d68
mov eax, ecx
mov ecx, dword [esp + 0x78]
cmp eax, ecx
jne 0x4d8dff
mov ecx, dword [esp + 0x80]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x80], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xa0]
add esp, 4
cmp eax, esi
jne 0x4d8ddd
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x94]
xor edx, edx
push ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor esi, esi
jmp 0x4d8dff
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x78], edx
cmp dword [esp + 0x9c], esi
jne 0x4d8d3e
lea ecx, [esp + 0x60]
mov byte [esp + 0x134], 9
call fcn.0044eec0
lea ecx, [esp + 0x108]
mov byte [esp + 0x134], 8
call fcn.0044eec0
lea ecx, [esp + 0x118]
mov byte [esp + 0x134], 7
call fcn.0044eec0
lea ecx, [esp + 0x48]
mov byte [esp + 0x134], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x134], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 4
call fcn.004637b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x128
ret 4