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

Disassembly:
push 0xffffffffffffffff
push 0x4f1b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::CString_4
xor ebp, ebp
lea ecx, [esp + 0x60]
mov dword [esp + 0x124], ebp
call sub.MFC42.DLL_CString::CString_4
mov edi, 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x124], edi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x38]
mov byte [esp + 0x124], 3
call fcn.00463770
lea ecx, [esp + 0x44]
mov byte [esp + 0x124], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x48]
mov byte [esp + 0x124], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x40]
mov byte [esp + 0x124], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x74]
mov byte [esp + 0x124], 7
mov dword [esp + 0x14], ebp
call fcn.0044a000
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x128], 8
call fcn.0044e9a0
push ebp
lea ecx, [esp + 0x110]
mov byte [esp + 0x128], 9
call fcn.0044e9a0
push ebp
lea eax, [esp + 0x4c]
push ebp
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x4c]
mov bl, 0xa
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x138], bl
call fcn.00429b90
cmp dword [esi + 0x130], edi
jne 0x42aa0c
mov eax, dword [esi + 0xfc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x52631c
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
call fcn.00463980
mov ecx, dword [esi + 0xf8]
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 + 0x40]
call fcn.00463980
mov ebp, dword [esp + 0x130]
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x526c84
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
call fcn.00463980
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x12c], 0xb
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.farmKey
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x12c], bl
call fcn.004637f0
push ecx
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x12c], 0xc
mov ecx, esp
mov dword [esp + 0x18], esp
push str.farmKey2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x12c], bl
call fcn.004637f0
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x12c], 0xd
mov ecx, esp
mov dword [esp + 0x18], esp
push str.farmTime
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x12c], bl
call fcn.004637f0
mov edi, dword [esp + 0x12c]
cmp edi, 1
je 0x42ae6e
cmp edi, 2
je 0x42ae6e
cmp edi, 3
je 0x42ab38
cmp edi, 4
je 0x42ab38
push ebp
lea eax, [esp + 0x60]
push 0x526c6c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x42b063
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x526c68
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
call fcn.00463980
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004637d0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x128], 0x13
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], bl
call sub.MFC42.DLL_CString::CString
push 1
push 1
push 1
lea ecx, [esp + 0x3c]
call fcn.00404830
push eax
push 0
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x530ac0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x130]
push ecx
xor edi, ebp
mov edx, esp
mov dword [esp + 0x2c], esp
push edi
push 0x28
push eax
push edx
mov ecx, esi
mov byte [esp + 0x150], 0x14
call fcn.00418720
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], bl
push ecx
mov ecx, esi
call fcn.00410fa0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x128], 0x15
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], bl
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [esp + 0x2c]
push edi
call sub.MFC42.DLL_CString::GetBuffer
mov dl, byte [esp + 0x2b]
mov esi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x18], dl
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 0x42ac4d
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x42ac76
mov al, byte [edi - 1]
test al, al
je 0x42ac76
cmp al, 0xff
je 0x42ac76
test ebp, ebp
jne 0x42aca1
dec al
push ebp
lea ecx, [esp + 0x1c]
mov byte [edi - 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 0x42accc
test ebp, ebp
jne 0x42ac88
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 0x42accc
mov eax, dword [esp + 0x24]
cmp eax, 0x1f
ja 0x42ac95
cmp eax, ebp
jae 0x42acb0
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 edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [ecx + ebp], 0
lea edx, [esp + 0x4c]
push 1
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x130], 0x16
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x124], bl
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x14], esi
je 0x42ad23
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42ad1a
cmp al, 0xff
je 0x42ad1a
dec al
mov byte [ecx], al
jmp 0x42ad23
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReleaseBuffer
test esi, esi
je 0x42b063
push str.code
lea ecx, [esp + 0x50]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x42ae30
push str.bonus
lea ecx, [esp + 0x50]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x110]
call fcn.0044f040
push str.bonus
lea ecx, [esp + 0x50]
call fcn.0044fea0
mov ecx, eax
call fcn.0044f140
cmp eax, 6
jne 0x42ae15
push 0x525f58
push 0
lea ecx, [esp + 0x114]
call fcn.0044fd30
mov ecx, eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x10c]
mov esi, eax
push 0x526044
push 0
call fcn.0044fd30
mov ecx, eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
lea ecx, [esp + 0x14]
push esi
push ecx
mov edi, eax
call fcn.0040a7e0
add esp, 0xc
mov edx, dword [eax]
lea eax, [esp + 0x60]
push edx
push edi
push 0x526608
push eax
mov byte [esp + 0x134], 0x17
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [esp + 0x124], bl
lea ecx, [esp + 0x10]
jmp 0x42b05e
push 0x526c4c
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CString::operator_3
mov dword [esp + 0x14], 0
jmp 0x42b063
push str.errorContent
lea ecx, [esp + 0x50]
call fcn.0044fea0
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x128], 0x18
call sub.MFC42.DLL_CString::operator_2
mov byte [esp + 0x124], bl
lea ecx, [esp + 0x10]
jmp 0x42b05e
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x526c68
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
call fcn.00463980
lea edx, [esp + 0x10]
lea ecx, [esp + 0x38]
push edx
call fcn.004637d0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x128], 0xe
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], bl
call sub.MFC42.DLL_CString::CString
push 1
push 1
push 1
lea ecx, [esp + 0x3c]
call fcn.00404830
push eax
push 0
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x530ac0
call sub.MFC42.DLL_CString::CString_3
push ecx
mov ecx, dword [esi + 0x130]
xor edi, ebp
mov eax, esp
mov dword [esp + 0x30], esp
push edi
push 0x27
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x150], 0xf
call fcn.00418720
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
mov byte [esp + 0x144], bl
call fcn.00410fa0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x128], 0x10
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], bl
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [esp + 0x2c]
push edi
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov al, byte [esp + 0x2b]
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
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
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 0x42afa0
mov edi, dword [esp + 0x1c]
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 + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x4c]
push 1
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0x130], 0x11
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x124], bl
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x14], esi
je 0x42aff7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42afee
cmp al, 0xff
je 0x42afee
dec al
mov byte [ecx], al
jmp 0x42aff7
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReleaseBuffer
test esi, esi
je 0x42b063
push str.code
lea ecx, [esp + 0x50]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42b063
push str.errorContent
lea ecx, [esp + 0x50]
call fcn.0044fea0
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x128], 0x12
call sub.MFC42.DLL_CString::operator_2
mov byte [esp + 0x124], bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x134]
xor edi, edi
cmp esi, edi
je 0x42b0a5
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x60]
lea ecx, [esi + 4]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
lea ecx, [esp + 0x10c]
mov byte [esp + 0x124], 9
call fcn.0044eec0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x124], 8
call fcn.0044eec0
mov ecx, dword [esp + 0xfc]
mov byte [esp + 0x124], 0x19
cmp ecx, edi
je 0x42b0f8
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x42b0ef
cmp al, 0xff
je 0x42b0ef
dec al
mov byte [ecx], al
jmp 0x42b0f8
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0xfc], edi
cmp ecx, edi
mov dword [esp + 0x100], edi
mov dword [esp + 0x104], edi
je 0x42b133
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x42b12a
cmp al, 0xff
je 0x42b12a
dec al
mov byte [ecx], al
jmp 0x42b133
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xd8], edi
cmp eax, edi
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], edi
je 0x42b264
mov ecx, dword [esp + 0xb0]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xb4], 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 + 0xd0]
dec eax
mov dword [esp + 0xd0], eax
je 0x42b19c
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
cmp ecx, eax
jne 0x42b253
mov eax, dword [esp + 0xb4]
mov ecx, eax
add eax, 4
mov dword [esp + 0xb4], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xd4]
add esp, 4
cmp eax, edi
jne 0x42b228
lea ecx, [esp + 0x18]
call fcn.004051c0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0xb0], edx
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0xa8], eax
push edx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc8], edi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x42b253
mov ecx, dword [esp + 0xb4]
mov eax, dword [ecx]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xac], edx
mov eax, dword [esp + 0xd0]
xor edi, edi
cmp eax, edi
jne 0x42b157
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x124], 7
cmp eax, edi
je 0x42b367
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0xa0]
add ecx, 4
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0xa0], eax
je 0x42b2ab
mov eax, ecx
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jne 0x42b356
mov ecx, dword [esp + 0x84]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x84], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xa4]
add esp, 4
cmp eax, edi
jne 0x42b331
lea ecx, [esp + 0x18]
call fcn.004051c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x78], eax
push ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x42b356
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0xa0]
xor edi, edi
cmp eax, edi
jne 0x42b27b
lea ecx, [esp + 0x40]
mov byte [esp + 0x124], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x124], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x124], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x124], 3
call fcn.004637b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x124], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov dword [esp + 0x124], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x11c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x118
ret 0xc