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

Disassembly:
push 0xffffffffffffffff
push 0x659714
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
push esi
push edi
mov edi, dword [ebp + 4]
call fcn.00413880
mov edx, 0x67c3b0
lea esi, [esp + 0xa8]
call fcn.0051d830
xor ebx, ebx
mov edx, str._ZEN_SELL_LINES_
lea esi, [esp + 0x70]
mov dword [esp + 0xe8], ebx
call fcn.0051d830
mov edi, dword [esp + 0xf4]
mov eax, edi
mov edx, ebp
mov byte [esp + 0xe8], 1
call fcn.00521d50
mov esi, eax
mov eax, dword [ebp]
cmp dword [eax + 0x844], ebx
mov dword [esp + 0x18], esi
jne 0x521e68
mov ebx, eax
call fcn.00457150
xor ebx, ebx
mov eax, dword [edi + 0x13c]
mov ecx, dword [ebp]
imul eax, eax, 0x58
mov edx, dword [ecx + 0x82c]
lea eax, [eax + edx + 0x358]
push 0x6a4
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x1c], eax
call fcn.00456d60
lea ecx, [esi + esi*4]
add ecx, ecx
lea edx, [esp + 0x8c]
mov byte [esp + 0xe8], 2
call fcn.005b67a0
mov edi, 8
mov byte [esp + 0xe8], 3
cmp dword [eax + 0x18], edi
jb 0x521ec4
mov edx, dword [eax + 4]
jmp 0x521ec7
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x521ee0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00404f80
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc8]
push ecx
mov ecx, str.SELL_PRICE
lea edx, [esp + 0x5c]
mov byte [esp + 0xf0], 4
call fcn.005178b0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xf4], 5
call fcn.00404e90
cmp dword [esp + 0xdc], edi
jb 0x521f4e
mov edx, dword [esp + 0xc8]
push edx
call fcn.0062414c
add esp, 4
cmp dword [esp + 0x34], edi
mov esi, 7
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
jb 0x521f7c
mov eax, dword [esp + 0x20]
push eax
call fcn.0062414c
add esp, 4
cmp dword [esp + 0xa4], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x521fa2
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0062414c
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov eax, dword [esp + 0xf4]
mov byte [esp + 0xe8], 6
mov ecx, dword [eax + 0x24]
cmp ecx, 0x33
jne 0x522018
mov edx, dword [esp + 0x14]
cmp dword [edx], 0x26
jne 0x522018
mov edx, str._MARIGOLD_SPROUT_
lea esi, [esp + 0x8c]
call fcn.0051d830
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xf4], 7
call fcn.00404e90
mov byte [esp + 0xe8], 6
cmp dword [esp + 0xa4], edi
jb 0x522070
mov eax, dword [esp + 0x90]
push eax
call fcn.0062414c
add esp, 4
jmp 0x522070
mov edx, dword [eax + 0x138]
push edx
lea ebx, [esp + 0x90]
call fcn.0046b450
add esp, 4
push 0xffffffffffffffff
push 0
mov ebx, 8
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xf4], bl
call fcn.00404e90
mov byte [esp + 0xe8], 6
cmp dword [esp + 0xa4], ebx
jb 0x522069
mov eax, dword [esp + 0x90]
push eax
call fcn.0062414c
add esp, 4
mov edi, 8
xor ebx, ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x90]
push edx
mov ecx, str.PLANT_TYPE
lea edx, [esp + 0x5c]
call fcn.005178b0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xf4], 9
call fcn.00404e90
mov byte [esp + 0xe8], 6
cmp dword [esp + 0xa4], edi
jb 0x5220c4
mov eax, dword [esp + 0x90]
push eax
call fcn.0062414c
add esp, 4
mov edx, dword [ebp]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.00457510
mov eax, dword [ebp]
mov ecx, dword [eax + 0x820]
mov eax, dword [eax + 0x840]
mov ecx, dword [ecx + 8]
and eax, 0xffff
lea esi, [eax + eax*4]
shl esi, 5
add esi, dword [ecx]
push 0x14
push esi
call fcn.00476e90
fld dword [0x688648]
fstp dword [esi + 8]
lea edx, [esi + 0x1c]
fldz
push edx
fstp dword [esi + 4]
lea eax, [esi + 0x18]
fld dword [0x688638]
push eax
mov edx, str.anim_blahblah
fstp dword [esi + 0x94]
mov eax, esi
mov dword [esi + 0x10], 3
mov dword [esi + 0x5c], ebx
call fcn.00476d50
push ebx
push 0x660424
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00404f80
push 1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xf4], 0xa
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov edx, dword [edx + 0x120]
lea eax, [esp + 0xb4]
push eax
push 1
push 0x2f
call edx
mov byte [esp + 0xe8], 6
cmp dword [esp + 0x34], edi
mov esi, eax
jb 0x52219b
mov eax, dword [esp + 0x20]
push eax
call fcn.0062414c
add esp, 4
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
add dword [esi + 0x30], 0x78
add dword [esi + 0x34], 0x3c
mov ecx, dword [ebp + 4]
mov dword [ecx + 0x55f4], 0x3e8
mov edx, dword [esi]
mov eax, dword [edx + 0x12c]
push 1
mov ecx, esi
call eax
mov edi, dword [ebp]
mov esi, eax
call fcn.004572f0
cmp esi, 0x3e8
je 0x5221eb
mov esi, 8
jmp 0x522314
mov edx, dword [ebp]
mov eax, dword [edx + 0x82c]
mov edx, dword [esp + 0x18]
add dword [eax + 0x28], edx
mov ecx, dword [eax + 0x28]
cmp ecx, 0x1869f
jle 0x52220f
mov dword [eax + 0x28], 0x1869f
jmp 0x522216
cmp ecx, ebx
jge 0x522216
mov dword [eax + 0x28], ebx
mov eax, dword [ebp + 4]
add dword [eax + 0x57a0], edx
mov eax, dword [ebp]
mov ecx, dword [eax + 0x82c]
mov eax, dword [ecx + 0x350]
mov edi, dword [esp + 0xf4]
sub eax, dword [edi + 0x13c]
sub eax, 1
cmp eax, ebx
jle 0x522299
imul eax, eax, 0x58
push eax
mov eax, dword [esp + 0x18]
lea edx, [eax + 0x58]
push edx
push eax
call fcn.0062bd80
mov edx, dword [ebp + 4]
add esp, 0xc
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0041e2e0
test al, al
je 0x522299
jmp 0x522270
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x13c]
cmp ecx, dword [edi + 0x13c]
jle 0x522289
add dword [eax + 0x13c], 0xffffffff
mov edx, dword [ebp + 4]
lea esi, [esp + 0x14]
call fcn.0041e2e0
test al, al
jne 0x522270
mov edx, dword [ebp]
mov eax, dword [edx + 0x82c]
add dword [eax + 0x350], 0xffffffff
mov eax, dword [ebp]
cmp byte [eax + 0x8c5], bl
jne 0x522307
fldz
mov ecx, dword [0x6ba020]
mov eax, dword [eax + 0x784]
fst dword [esp + 0x14]
fcomp dword [ecx + 0x1a4]
mov dword [esp + 0x18], eax
fnstsw ax
test ah, 0x44
jnp 0x5222ed
fld dword [ecx + 0x1a4]
push ecx
fstp dword [esp]
call fcn.005b57c0
fstp dword [esp + 0x18]
add esp, 4
fld dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
fstp dword [esp]
mov esi, 8
mov eax, esi
call fcn.005192b0
jmp 0x52230c
mov esi, 8
push ebp
mov eax, edi
call fcn.005219a0
cmp dword [esp + 0x50], esi
jb 0x522327
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0062414c
add esp, 4
cmp dword [esp + 0x6c], esi
mov edi, 7
mov word [esp + 0x3c], bx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], edi
jb 0x52234c
mov edx, dword [esp + 0x58]
push edx
call fcn.0062414c
add esp, 4
cmp dword [esp + 0x88], esi
mov word [esp + 0x58], bx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edi
jb 0x52236f
mov eax, dword [esp + 0x74]
push eax
call fcn.0062414c
add esp, 4
cmp dword [esp + 0xc0], esi
mov word [esp + 0x74], bx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], edi
jb 0x52239b
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0062414c
add esp, 4
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xdc
ret 8