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

Disassembly:
push 0xffffffffffffffff
push 0x4ef38f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor esi, esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x104], esi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x104], 1
call sub.MFC42.DLL_CString::CString_4
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x108], 2
call fcn.0044e9a0
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x108], 3
call fcn.0044e9a0
lea ecx, [esp + 0x64]
mov byte [esp + 0x104], 4
call fcn.0044a000
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 5
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x104], 6
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x18]
push 1
push eax
mov byte [esp + 0x10c], 7
call fcn.0040dc50
mov ecx, dword [esp + 0x114]
mov bl, 8
push 0x5261c0
push ecx
mov byte [esp + 0x114], bl
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x10
test eax, eax
jne 0x41638b
push 0x5261bc
lea ecx, [esp + 0x110]
call sub.MFC42.DLL_CString::operator_3
push esi
lea ecx, [esp + 0x110]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
mov al, byte [esp + 0x23]
mov byte [esp + 0x44], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x4c]
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 ecx, [esp + 0x54]
push 1
lea edx, [esp + 0x48]
push ecx
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0x110], 9
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x104], bl
mov edi, eax
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x416416
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41640d
cmp al, 0xff
je 0x41640d
dec al
mov byte [ecx], al
jmp 0x416416
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
or ebx, 0xffffffff
lea ecx, [esp + 0x10c]
push ebx
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp edi, esi
jne 0x41650b
lea ecx, [esp + 0x18]
mov byte [esp + 0x104], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x104], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 5
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0xec]
mov byte [esp + 0x108], 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_]
push 1
lea ecx, [esp + 0xc8]
mov byte [esp + 0x108], 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_]
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x104], 0xa
cmp eax, esi
je 0x4164b7
lea ecx, [esp + 0x94]
call fcn.0042c1b0
cmp dword [esp + 0xc0], esi
jne 0x4164a2
mov eax, dword [esp + 0x90]
mov byte [esp + 0x104], 4
cmp eax, esi
je 0x4165ed
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x90]
add ecx, 4
dec eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x90], eax
je 0x4164f4
mov eax, ecx
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jne 0x4164fd
lea ecx, [esp + 0x64]
call fcn.0042c550
cmp dword [esp + 0x90], esi
jne 0x4164ce
jmp 0x4165ed
lea ecx, [esp + 0x54]
call fcn.0044f140
cmp eax, 6
je 0x41664b
lea ecx, [esp + 0x18]
mov byte [esp + 0x104], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x104], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 5
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0xec]
mov byte [esp + 0x108], 0xf
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 + 0xc8]
mov byte [esp + 0x108], 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_]
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x104], 0xd
cmp eax, esi
je 0x4165a6
lea ecx, [esp + 0x94]
call fcn.0042c1b0
cmp dword [esp + 0xc0], esi
jne 0x416591
mov eax, dword [esp + 0x90]
mov byte [esp + 0x104], 4
cmp eax, esi
je 0x4165ed
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x90]
add ecx, 4
dec eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x90], eax
je 0x4165db
cmp ecx, dword [esp + 0x6c]
jne 0x4165e4
lea ecx, [esp + 0x64]
call fcn.0042c550
cmp dword [esp + 0x90], esi
jne 0x4165b9
lea ecx, [esp + 0x30]
mov byte [esp + 0x104], 3
call fcn.0044eec0
lea ecx, [esp + 0x54]
mov byte [esp + 0x104], 2
call fcn.0044eec0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x104], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x104], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10c]
mov dword [esp + 0x104], ebx
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x416bd5
lea ecx, [esp + 0x54]
xor edi, edi
call fcn.0044fc80
test eax, eax
jbe 0x41667c
push edi
lea ecx, [esp + 0x58]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x34]
call fcn.0044f040
lea ecx, [esp + 0x54]
inc edi
call fcn.0044fc80
cmp edi, eax
jb 0x41665a
mov ecx, dword [ebp + 0x9b8]
xor eax, eax
cmp ecx, esi
jbe 0x4166a5
xor ecx, ecx
mov edx, dword [ebp + 0x9b4]
inc eax
mov dword [ecx + edx + 0x48], esi
mov edx, dword [ebp + 0x9b8]
add ecx, 0x84
cmp eax, edx
jb 0x41668a
mov ecx, dword [ebp + 0x9c0]
xor eax, eax
cmp ecx, esi
jbe 0x4166cb
xor ecx, ecx
mov edx, dword [ebp + 0x9bc]
inc eax
mov dword [ecx + edx + 0xc], esi
mov edx, dword [ebp + 0x9c0]
add ecx, 0x10
cmp eax, edx
jb 0x4166b3
xor edx, edx
mov eax, dword [0x536d10]
mov ecx, dword [eax + 0x1100]
cmp ecx, esi
je 0x4166f7
mov edi, dword [eax + 0x1104]
sub edi, ecx
sar edi, 2
cmp edx, edi
jae 0x4166f7
mov eax, ecx
inc edx
mov ecx, dword [eax + edx*4 - 4]
mov dword [ecx + 0x58], esi
jmp 0x4166cd
lea ecx, [esp + 0x54]
mov dword [esp + 0x40], esi
call fcn.0044fc80
test eax, eax
jbe 0x4168d3
push esi
lea ecx, [esp + 0x58]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x34]
call fcn.0044f040
push str.amount
lea ecx, [esp + 0x34]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x30]
mov ebx, eax
push 0x525f58
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
dec eax
je 0x4167f8
sub eax, 2
je 0x4167b7
sub eax, 0x14
jne 0x4168bd
push 0x5261b8
lea ecx, [esp + 0x34]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [0x536d10]
add esp, 4
push eax
lea ecx, [edx + 0x10f0]
call fcn.0043a3d0
mov edi, eax
test edi, edi
je 0x4168bd
push str.amount
lea ecx, [esp + 0x34]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
mov dword [edi + 0x58], eax
jmp 0x4168bd
push 0x526198
lea ecx, [esp + 0x34]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [ebp + 0x9c0]
add esp, 4
cmp eax, ecx
jae 0x4168bd
mov ecx, dword [ebp + 0x9bc]
shl eax, 4
mov dword [ecx + eax + 0xc], ebx
mov eax, dword [esp + 0x24]
add eax, ebx
mov dword [esp + 0x24], eax
jmp 0x4168bd
push str.level
lea ecx, [esp + 0x34]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x30]
mov edi, eax
push 0x5261ac
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [ebp + 0x9b4]
mov esi, eax
shl esi, 5
add esi, eax
add esp, 4
shl esi, 2
lea ecx, [esi + edx + 0x48]
mov edx, dword [esi + edx + 0x48]
add edx, ebx
test edi, edi
mov dword [ecx], edx
je 0x4168af
mov ecx, dword [ebp + 0x9b4]
mov edx, dword [esi + ecx + 0x3c]
lea ecx, [esi + ecx + 0x3c]
test edx, edx
jne 0x4168af
push eax
lea edx, [esp + 0x14]
push 0x5231b8
push edx
mov dword [ecx], edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 0x9b4]
add esp, 0xc
add eax, esi
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x3c]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._d__d__s
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
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 eax, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
add eax, ebx
mov dword [esp + 0x28], eax
inc esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x40], esi
call fcn.0044fc80
cmp esi, eax
jb 0x41670c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
mov dword [ebp + 0xb4], edx
mov dword [ebp + 0xb8], eax
mov byte [esp + 0x104], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x104], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xec]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x104], 0x10
je 0x41694c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x416943
cmp al, 0xff
je 0x416943
dec al
mov byte [ecx], al
jmp 0x41694c
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xec], esi
cmp eax, esi
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf4], esi
je 0x416989
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x416980
cmp al, 0xff
je 0x416980
dec al
mov byte [ecx], al
jmp 0x416989
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc8], esi
cmp eax, esi
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
je 0x416ab6
mov ecx, dword [esp + 0xa0]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xa4], 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 + 0xc0]
dec eax
mov dword [esp + 0xc0], eax
je 0x4169f2
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
cmp ecx, eax
jne 0x416aa9
mov eax, dword [esp + 0xa4]
mov ecx, eax
add eax, 4
mov dword [esp + 0xa4], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xc4]
add esp, 4
cmp eax, esi
jne 0x416a7e
lea ecx, [esp + 0x44]
call fcn.004051c0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x98], eax
push edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb8], edi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x416aa9
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x9c], edx
cmp dword [esp + 0xc0], esi
jne 0x4169ad
cmp dword [esp + 0x90], esi
je 0x416b75
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x90]
add ecx, 4
dec eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x90], eax
je 0x416ae9
mov eax, ecx
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jne 0x416b68
mov ecx, dword [esp + 0x74]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x74], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x94]
add esp, 4
cmp eax, esi
jne 0x416b4c
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x88]
xor edx, edx
push ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor esi, esi
jmp 0x416b68
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x6c], edx
cmp dword [esp + 0x90], esi
jne 0x416ac3
lea ecx, [esp + 0x30]
mov byte [esp + 0x104], 3
call fcn.0044eec0
lea ecx, [esp + 0x54]
mov byte [esp + 0x104], 2
call fcn.0044eec0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x104], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x104], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10c]
mov dword [esp + 0x104], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf8
ret 4