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

Disassembly:
push 0xffffffffffffffff
push 0x493878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [0x4be818]
xor esi, esi
mov dword [esp + 0x120], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push esi
lea ecx, [esp + 0xfc]
mov byte [esp + 0x124], 2
call fcn.00431a20
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x124], 3
call fcn.00431a20
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x124], 4
call fcn.00431a20
lea ecx, [esp + 0x60]
mov byte [esp + 0x120], 5
call fcn.0042c2e0
lea eax, [esp + 0x58]
mov byte [esp + 0x120], 6
push eax
call fcn.00409c20
add esp, 4
push 0x4b82f4
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x12c], 7
call fcn.004846c8
lea ecx, [esp + 0x58]
mov byte [esp + 0x120], 9
call fcn.00484433
push esi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x20], esi
call fcn.00484863
mov edx, eax
mov al, byte [esp + 0x23]
mov byte [esp + 0x24], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.0041d140
lea ecx, [esp + 0xf8]
push 1
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x12c], 0xa
call fcn.0042c370
test al, al
sete bl
mov byte [esp + 0x120], 9
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x410b8f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x410b86
cmp al, 0xff
je 0x410b86
dec al
mov byte [ecx], al
jmp 0x410b8f
push ecx
call fcn.004849c1
add esp, 4
test bl, bl
je 0x410c2a
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 6
call fcn.00484433
push 1
lea ecx, [esp + 0xe8]
mov byte [esp + 0x124], 0xd
call fcn.0041cfc0
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x124], 0xc
call fcn.0041cfc0
mov eax, dword [esp + 0xbc]
mov byte [esp + 0x120], 0xb
cmp eax, esi
je 0x410bfc
lea ecx, [esp + 0x90]
call fcn.0041d0a0
cmp dword [esp + 0xbc], esi
jne 0x410be7
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x120], 5
cmp eax, esi
je 0x410fa1
lea ecx, [esp + 0x60]
call fcn.0041d010
cmp dword [esp + 0x8c], esi
jne 0x410c13
jmp 0x410fa1
push 0xffffffffffffffff
lea ecx, [esp + 0x12c]
call fcn.004848b2
push str.crop
lea ecx, [esp + 0xfc]
call fcn.00432ed0
push eax
lea ecx, [esp + 0x4c]
call fcn.004320c0
lea ecx, [esp + 0x48]
call fcn.004321c0
cmp eax, 6
je 0x410cf8
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 6
call fcn.00484433
push 1
lea ecx, [esp + 0xe8]
mov byte [esp + 0x124], 0x10
call fcn.0041cfc0
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x124], 0xf
call fcn.0041cfc0
mov eax, dword [esp + 0xbc]
mov byte [esp + 0x120], 0xe
cmp eax, esi
je 0x410cca
lea ecx, [esp + 0x90]
call fcn.0041d0a0
cmp dword [esp + 0xbc], esi
jne 0x410cb5
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x120], 5
cmp eax, esi
je 0x410fa1
lea ecx, [esp + 0x60]
call fcn.0041d010
cmp dword [esp + 0x8c], esi
jne 0x410ce1
jmp 0x410fa1
mov ecx, dword [ebp + 0x620]
xor eax, eax
cmp ecx, esi
jle 0x410d1e
xor ecx, ecx
mov edx, dword [ebp + 0x61c]
inc eax
mov dword [edx + ecx + 0x40], esi
mov edx, dword [ebp + 0x620]
add ecx, 0x78
cmp eax, edx
jl 0x410d06
lea ecx, [esp + 0x48]
mov dword [esp + 0x34], esi
call fcn.00432cb0
test eax, eax
jbe 0x410ec3
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
lea ecx, [esp + 0x4c]
call fcn.00432d60
push eax
lea ecx, [esp + 0x3c]
call fcn.004320c0
lea ecx, [esp + 0x38]
call fcn.004321c0
cmp eax, 7
jne 0x410f13
push 0x4ba764
lea ecx, [esp + 0x3c]
call fcn.00432ed0
push eax
call fcn.0040ab30
mov edi, eax
mov eax, dword [ebp + 0x620]
add esp, 4
cmp edi, eax
jae 0x410ead
lea eax, [edi + edi*2]
push 0x4c2d98
lea esi, [eax + eax*4]
mov eax, dword [ebp + 0x61c]
shl esi, 3
lea eax, [esi + eax + 0x10]
mov eax, dword [eax]
push eax
call fcn.0046f2f7
add esp, 8
test eax, eax
je 0x410dbf
mov ecx, dword [ebp + 0x61c]
mov eax, dword [esi + ecx + 0x28]
test eax, eax
jne 0x410e74
push str.cName
lea ecx, [esp + 0x3c]
call fcn.00432ed0
lea edx, [esp + 0x5c]
push eax
push edx
call fcn.0040ac10
add esp, 8
push eax
mov eax, dword [ebp + 0x61c]
mov byte [esp + 0x124], 0x14
lea ecx, [esi + eax + 0x10]
call fcn.0048456c
lea ecx, [esp + 0x5c]
mov byte [esp + 0x120], 9
call fcn.00484433
push str.price
lea ecx, [esp + 0x3c]
call fcn.00432ed0
push eax
call fcn.0040ab30
mov ecx, dword [ebp + 0x61c]
add esp, 4
lea edx, [esp + 0x10]
push edi
push 0x4b8278
push edx
mov dword [esi + ecx + 0x28], eax
call fcn.004827a3
mov eax, dword [ebp + 0x61c]
add esp, 0xc
add eax, esi
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0x30]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._d__d__s
push ecx
call fcn.004827a3
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 ebx
push str.amount
lea ecx, [esp + 0x3c]
call fcn.00432ed0
push eax
call fcn.0040ab30
mov edx, dword [ebp + 0x61c]
add esp, 4
mov dword [esi + edx + 0x40], eax
mov eax, dword [ebp + 0x61c]
mov ecx, dword [esi + eax + 0x40]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x1c], eax
inc esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x34], esi
call fcn.00432cb0
cmp esi, eax
jb 0x410d39
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
mov dword [ebp + 0x74], edx
mov byte [esp + 0x120], 6
call fcn.00484433
mov eax, dword [esp + 0xe8]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x120], 0x15
je 0x411020
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x411017
cmp al, 0xff
je 0x411017
dec al
mov byte [ecx], al
jmp 0x411020
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 6
call fcn.00484433
push 1
lea ecx, [esp + 0xe8]
mov byte [esp + 0x124], 0x13
call fcn.0041cfc0
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x124], 0x12
call fcn.0041cfc0
mov eax, dword [esp + 0xbc]
mov byte [esp + 0x120], 0x11
test eax, eax
je 0x410f7a
lea ecx, [esp + 0x90]
call fcn.0041d0a0
mov eax, dword [esp + 0xbc]
test eax, eax
jne 0x410f63
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x120], 5
test eax, eax
je 0x410fa1
lea ecx, [esp + 0x60]
call fcn.0041d010
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x410f8d
lea ecx, [esp + 0x48]
mov byte [esp + 0x120], 4
call fcn.00431f40
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 3
call fcn.00431f40
lea ecx, [esp + 0xf8]
mov byte [esp + 0x120], 2
call fcn.00431f40
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 1
call fcn.00484433
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 0
call fcn.00484433
lea ecx, [esp + 0x128]
mov dword [esp + 0x120], 0xffffffff
call fcn.00484433
xor eax, eax
jmp 0x41123f
push ecx
call fcn.004849c1
add esp, 4
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xe8], esi
cmp eax, esi
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], esi
je 0x41105d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x411054
cmp al, 0xff
je 0x411054
dec al
mov byte [ecx], al
jmp 0x41105d
push ecx
call fcn.004849c1
add esp, 4
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc4], esi
cmp eax, esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], esi
je 0x4110ce
mov eax, dword [esp + 0x9c]
push esi
mov ecx, eax
add eax, 0x20
mov dword [esp + 0xa0], eax
call fcn.0041d570
mov eax, dword [esp + 0xbc]
dec eax
mov dword [esp + 0xbc], eax
je 0x4110b9
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
cmp eax, ecx
jne 0x4110c5
lea ecx, [esp + 0x90]
call fcn.0041d320
cmp dword [esp + 0xbc], esi
jne 0x41107d
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x120], 5
cmp eax, esi
je 0x4111cb
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x8c]
add ecx, 4
dec eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x8c], eax
je 0x41110b
cmp ecx, dword [esp + 0x68]
jne 0x4111be
mov ecx, dword [esp + 0x70]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x70], ecx
mov eax, dword [eax]
push eax
call fcn.004849c1
mov eax, dword [esp + 0x90]
add esp, 4
cmp eax, esi
jne 0x41117e
lea ecx, [esp + 0x24]
call fcn.0041d4b0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x64], eax
push edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x84], esi
call fcn.004849c1
add esp, 4
xor esi, esi
jmp 0x4111be
mov eax, dword [esp + 0x70]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x110]
call fcn.0041d4c0
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x110]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
cmp dword [esp + 0x8c], esi
jne 0x4110e5
lea ecx, [esp + 0x48]
mov byte [esp + 0x120], 4
call fcn.00431f40
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 3
call fcn.00431f40
lea ecx, [esp + 0xf8]
mov byte [esp + 0x120], 2
call fcn.00431f40
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 1
call fcn.00484433
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 0
call fcn.00484433
lea ecx, [esp + 0x128]
mov dword [esp + 0x120], 0xffffffff
call fcn.00484433
mov eax, 1
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 4