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

Disassembly:
push 0xffffffffffffffff
push 0x4ef494
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea eax, [esp + 0x20]
xor ebx, ebx
push 1
push eax
mov dword [esp + 0x118], ebx
call fcn.0040dc50
add esp, 8
push ebx
lea ecx, [esp + 0xd8]
mov byte [esp + 0x114], 1
call fcn.0044e9a0
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x114], 2
call fcn.0044e9a0
push ebx
lea ecx, [esp + 0xfc]
mov byte [esp + 0x114], 3
call fcn.0044e9a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x110], 4
call fcn.0044a000
lea ecx, [esp + 0x18]
mov byte [esp + 0x110], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], 6
call sub.MFC42.DLL_CString::CString_4
push ebx
lea ecx, [esp + 0x11c]
mov byte [esp + 0x114], 7
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x3b]
mov edx, eax
or esi, 0xffffffff
mov byte [esp + 0xe8], cl
mov edi, edx
mov ecx, esi
xor eax, eax
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0xf0]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea edx, [esp + 0xd4]
push 1
lea eax, [esp + 0xec]
push edx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x11c], 8
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x110], 7
mov edi, eax
mov eax, dword [esp + 0xec]
cmp eax, ebx
je 0x416d46
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x416d3d
cmp al, 0xff
je 0x416d3d
dec al
mov byte [ecx], al
jmp 0x416d46
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
lea ecx, [esp + 0x11c]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp edi, ebx
jne 0x416e14
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x110], 5
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x114], 0xb
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 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0x114], 0xa
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 + 0x98]
mov byte [esp + 0x110], 9
cmp eax, ebx
je 0x416dd0
lea ecx, [esp + 0x6c]
call fcn.0042c1b0
cmp dword [esp + 0x98], ebx
jne 0x416dbe
mov eax, dword [esp + 0x68]
mov byte [esp + 0x110], 4
cmp eax, ebx
je 0x416edd
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x68]
add ecx, 4
dec eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], eax
je 0x416e00
cmp ecx, dword [esp + 0x44]
jne 0x416e09
lea ecx, [esp + 0x3c]
call fcn.0042c550
cmp dword [esp + 0x68], ebx
jne 0x416de4
jmp 0x416edd
lea ecx, [esp + 0xd4]
call fcn.0044f140
cmp eax, 6
je 0x416f41
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x110], 5
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x114], 0xe
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 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0x114], 0xd
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 + 0x98]
mov byte [esp + 0x110], 0xc
cmp eax, ebx
je 0x416e9e
lea ecx, [esp + 0x6c]
call fcn.0042c1b0
cmp dword [esp + 0x98], ebx
jne 0x416e8c
mov eax, dword [esp + 0x68]
mov byte [esp + 0x110], 4
cmp eax, ebx
je 0x416edd
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x68]
add ecx, 4
dec eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], eax
je 0x416ece
mov eax, dword [esp + 0x44]
mov edx, ecx
cmp edx, eax
jne 0x416ed7
lea ecx, [esp + 0x3c]
call fcn.0042c550
cmp dword [esp + 0x68], ebx
jne 0x416eae
lea ecx, [esp + 0xf8]
mov byte [esp + 0x110], 3
call fcn.0044eec0
lea ecx, [esp + 0x28]
mov byte [esp + 0x110], 2
call fcn.0044eec0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x110], 1
call fcn.0044eec0
lea ecx, [esp + 0x20]
mov byte [esp + 0x110], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x118]
mov dword [esp + 0x110], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x41771e
xor esi, esi
lea ecx, [esp + 0xd4]
mov dword [esp + 0x24], esi
call fcn.0044fc80
test eax, eax
jbe 0x4171a5
mov edi, dword [esp + 0x11c]
jmp 0x416f66
xor ebx, ebx
push esi
lea ecx, [esp + 0xd8]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x2c]
call fcn.0044f040
lea ecx, [esp + 0x28]
call fcn.0044f140
cmp eax, 7
jne 0x417350
push 0x5261ac
lea ecx, [esp + 0x2c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417186
mov eax, dword [edi]
mov esi, ebx
shl esi, 5
add esi, ebx
shl esi, 2
mov dword [eax + esi], 1
mov ecx, dword [edi]
mov edx, dword [ebp + 0x118]
lea eax, [ecx + esi]
mov ecx, dword [ecx + esi + 0x44]
cmp edx, ecx
sbb ecx, ecx
inc ecx
mov dword [eax + 8], ecx
mov edx, dword [edi]
lea ecx, [esp + 0x10]
lea eax, [edx + esi + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_2
push str.cName
lea ecx, [esp + 0x2c]
call fcn.0044fea0
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0040c8b0
add esp, 8
mov edx, dword [edi]
push eax
mov byte [esp + 0x114], 0x12
lea ecx, [edx + esi + 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x110], 7
call sub.MFC42.DLL_CString::CString
push str.cType
lea ecx, [esp + 0x2c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [edi]
add esp, 4
mov dword [ecx + esi + 0x20], eax
push str.growthCycle
lea ecx, [esp + 0x2c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [edi]
add esp, 4
lea ecx, [esp + 0x28]
push str.maturingTime
mov dword [edx + esi + 0x24], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [edi]
add esp, 4
mov dword [ecx + esi + 0x28], eax
push str.expect
lea ecx, [esp + 0x2c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [edi]
add esp, 4
lea ecx, [esp + 0x28]
push str.output
mov dword [edx + esi + 0x2c], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [edi]
add esp, 4
mov dword [ecx + esi + 0x30], eax
push str.sale
lea ecx, [esp + 0x2c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [edi]
add esp, 4
lea ecx, [esp + 0x28]
push str.price
mov dword [edx + esi + 0x34], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [edi]
add esp, 4
mov dword [ecx + esi + 0x38], eax
push str.cLevel
lea ecx, [esp + 0x2c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [edi]
add esp, 4
lea ecx, [esp + 0x28]
push str.cropExp
mov dword [edx + esi + 0x3c], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [edi]
add esp, 4
mov dword [ecx + esi + 0x40], eax
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x417186
push ebx
lea edx, [esp + 0x14]
push 0x5231b8
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [edi]
add esp, 0xc
add esi, eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x3c]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str._d__d__s
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 0x14
push edx
push eax
push ecx
push str.PLANTS
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0xd4]
inc esi
mov dword [esp + 0x24], esi
call fcn.0044fc80
cmp esi, eax
jb 0x416f64
xor ebx, ebx
push 0x536964
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x5307a8
push edx
mov byte [esp + 0x118], 0x13
call esi
add esp, 8
test eax, eax
je 0x41747f
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x5236a4
push eax
call esi
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x417215
push 0x5236a4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
xor edi, edi
lea ecx, [esp + 0x14]
push edi
push 0x5236a4
call sub.MFC42.DLL_CString::Find
mov ebx, eax
test ebx, ebx
jl 0x41747d
mov ecx, ebx
lea edx, [esp + 0x1c]
sub ecx, edi
push ecx
push edi
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x114], 0x14
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x110], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight_1
mov eax, dword [esp + 0x10]
push 0x5307a8
push eax
call esi
add esp, 8
test eax, eax
je 0x417461
mov eax, dword [ebp + 0x9b8]
xor edi, edi
test eax, eax
jbe 0x4172d6
xor esi, esi
mov ecx, dword [ebp + 0x9b4]
mov edx, dword [esp + 0x10]
push edx
lea eax, [esi + ecx + 0x1c]
mov eax, dword [esi + ecx + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4172d0
mov eax, dword [ebp + 0x9b8]
inc edi
add esi, 0x84
cmp edi, eax
jb 0x41729e
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
cmp edi, dword [ebp + 0x9b8]
jne 0x41744c
lea eax, [esp + 0x10]
lea ecx, [esp + 0xe4]
push eax
push 0x5261e8
push ecx
call sub.MFC42.DLL_operator_3
push 0x5261c4
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0x11c], 0x15
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
mov edx, dword [ebp]
push eax
push 4
mov ecx, ebp
mov byte [esp + 0x118], 0x16
call dword [edx + 8]
lea ecx, [esp + 0x24]
mov byte [esp + 0x110], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 0x13
call sub.MFC42.DLL_CString::CString
jmp 0x417461
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x110], 5
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x114], 0x11
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 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0x114], 0x10
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 + 0x98]
mov byte [esp + 0x110], 0xf
cmp eax, ebx
je 0x4173c5
lea ecx, [esp + 0x6c]
call fcn.0042c1b0
cmp dword [esp + 0x98], ebx
jne 0x4173b3
mov eax, dword [esp + 0x68]
mov byte [esp + 0x110], 4
cmp eax, ebx
je 0x4173e4
lea ecx, [esp + 0x3c]
call fcn.0042c120
cmp dword [esp + 0x68], ebx
jne 0x4173d5
lea ecx, [esp + 0xf8]
mov byte [esp + 0x110], 3
call fcn.0044eec0
lea ecx, [esp + 0x28]
mov byte [esp + 0x110], 2
call fcn.0044eec0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x110], 1
call fcn.0044eec0
lea ecx, [esp + 0x20]
mov byte [esp + 0x110], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x118]
mov dword [esp + 0x110], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x41771e
mov ecx, dword [ebp + 0x9b4]
mov eax, edi
shl eax, 5
add eax, edi
mov dword [ecx + eax*4 + 8], 0
lea edi, [ebx + 1]
lea ecx, [esp + 0x14]
push edi
push 0x5236a4
call sub.MFC42.DLL_CString::Find
mov ebx, eax
test ebx, ebx
jge 0x417230
xor ebx, ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x110], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x110], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc4]
mov byte [esp + 0x110], 0x17
cmp eax, ebx
je 0x4174e2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4174d9
cmp al, 0xff
je 0x4174d9
dec al
mov byte [ecx], al
jmp 0x4174e2
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xc4], ebx
cmp eax, ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
je 0x41751f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x417516
cmp al, 0xff
je 0x417516
dec al
mov byte [ecx], al
jmp 0x41751f
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x98]
mov dword [esp + 0xa0], ebx
cmp eax, ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
je 0x417613
mov ecx, dword [esp + 0x78]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0x7c], 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 + 0x98]
dec eax
mov dword [esp + 0x98], eax
je 0x41757c
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
cmp edx, eax
jne 0x417606
mov eax, dword [esp + 0x7c]
mov ecx, eax
add eax, 4
mov dword [esp + 0x7c], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x9c]
add esp, 4
cmp eax, ebx
jne 0x4175ea
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x90]
xor edx, edx
xor esi, esi
push eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], esi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebx, ebx
jmp 0x417606
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x74], edx
cmp dword [esp + 0x98], ebx
jne 0x417543
cmp dword [esp + 0x68], ebx
je 0x4176b8
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x68]
add ecx, 4
dec eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], eax
je 0x417639
cmp ecx, dword [esp + 0x44]
jne 0x4176ae
mov ecx, dword [esp + 0x4c]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x4c], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x6c]
add esp, 4
cmp eax, ebx
jne 0x417692
xor edx, edx
xor eax, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x60]
xor ecx, ecx
xor esi, esi
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebx, ebx
jmp 0x4176ae
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x44], edx
cmp dword [esp + 0x68], ebx
jne 0x41761d
lea ecx, [esp + 0xf8]
mov byte [esp + 0x110], 3
call fcn.0044eec0
lea ecx, [esp + 0x28]
mov byte [esp + 0x110], 2
call fcn.0044eec0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x110], 1
call fcn.0044eec0
lea ecx, [esp + 0x20]
mov byte [esp + 0x110], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x118]
mov dword [esp + 0x110], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x108]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x104
ret 8