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

Disassembly:
push 0xffffffffffffffff
push 0x64e787
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
mov ebp, dword [esp + 0xb0]
push esi
push edi
mov edi, dword [ebp + 4]
call fcn.00412330
mov ecx, str._ZEN_SELL_HEADER_
lea esi, [esp + 0x8c]
call fcn.005195d0
xor ebx, ebx
mov ecx, str._ZEN_SELL_LINES_
lea esi, [esp + 0x70]
mov dword [esp + 0xb0], ebx
call fcn.005195d0
mov esi, dword [esp + 0xbc]
mov eax, esi
mov edx, ebp
mov byte [esp + 0xb0], 1
call fcn.0051d970
mov edi, eax
mov eax, dword [ebp]
cmp dword [eax + 0x844], ebx
mov dword [esp + 0x6c], edi
jne 0x51da88
mov ebx, eax
call fcn.004541b0
xor ebx, ebx
mov eax, dword [esi + 0x13c]
mov ecx, dword [ebp]
imul eax, eax, 0x58
mov edx, dword [ecx + 0x82c]
lea eax, [eax + edx + 0x358]
push 0x6a4
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x1c], eax
call fcn.00453dc0
lea eax, [esp + 0x18]
push edi
push eax
mov ecx, str.SELL_PRICE
lea edx, [esp + 0x3c]
mov byte [esp + 0xb8], 2
call fcn.00513720
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xbc], 3
call fcn.00403e20
mov edi, 0x10
cmp dword [esp + 0x30], edi
jb 0x51db00
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0061c19a
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov byte [esp + 0xb0], 4
mov eax, dword [esi + 0x24]
cmp eax, 0x33
jne 0x51db41
mov edx, dword [esp + 0x14]
cmp dword [edx], 0x26
jne 0x51db41
mov ecx, str._MARIGOLD_SPROUT_
lea esi, [esp + 0x18]
call fcn.005195d0
mov byte [esp + 0xb0], 5
jmp 0x51db5e
mov ecx, dword [esi + 0x138]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00467c00
add esp, 0xc
mov byte [esp + 0xb0], 6
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
call fcn.00403e20
mov byte [esp + 0xb0], 4
cmp dword [esp + 0x30], edi
jb 0x51db86
mov eax, dword [esp + 0x1c]
push eax
call fcn.0061c19a
add esp, 4
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, str.PLANT_TYPE
lea edx, [esp + 0x3c]
call fcn.00513660
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xbc], 7
call fcn.00403e20
mov byte [esp + 0xb0], 4
cmp dword [esp + 0x30], edi
jb 0x51dbd1
mov eax, dword [esp + 0x1c]
push eax
call fcn.0061c19a
add esp, 4
mov edx, dword [ebp]
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.00454570
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.00473310
fld dword [0x679388]
fstp dword [esi + 8]
lea edx, [esi + 0x1c]
fldz
push edx
fstp dword [esi + 4]
lea eax, [esi + 0x18]
fld dword [0x679378]
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.004731d0
push ebx
push 0x65540c
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00404330
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xbc], 8
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov edx, dword [edx + 0x120]
lea eax, [esp + 0x98]
push eax
push 1
push 0x2f
call edx
mov byte [esp + 0xb0], 4
cmp dword [esp + 0x30], edi
mov esi, eax
jb 0x51dca7
mov eax, dword [esp + 0x1c]
push eax
call fcn.0061c19a
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
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.00454350
cmp esi, 0x3e8
je 0x51dd7a
mov esi, 0x10
cmp dword [esp + 0x68], esi
jb 0x51dd08
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x4c], esi
mov edi, 0xf
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x51dd2c
mov edx, dword [esp + 0x38]
push edx
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x51dd4e
mov eax, dword [esp + 0x74]
push eax
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x51df1e
mov ecx, dword [esp + 0x90]
push ecx
jmp 0x51df16
mov edx, dword [ebp]
mov eax, dword [edx + 0x82c]
mov edx, dword [esp + 0x6c]
add dword [eax + 0x28], edx
mov ecx, dword [eax + 0x28]
cmp ecx, 0x1869f
jle 0x51dd9e
mov dword [eax + 0x28], 0x1869f
jmp 0x51dda5
cmp ecx, ebx
jge 0x51dda5
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 + 0xbc]
sub eax, dword [edi + 0x13c]
sub eax, 1
cmp eax, ebx
jle 0x51de29
imul eax, eax, 0x58
push eax
mov eax, dword [esp + 0x18]
lea edx, [eax + 0x58]
push edx
push eax
call fcn.00624510
mov edx, dword [ebp + 4]
add esp, 0xc
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0041c950
test al, al
je 0x51de29
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x13c]
cmp ecx, dword [edi + 0x13c]
jle 0x51de19
add dword [eax + 0x13c], 0xffffffff
mov edx, dword [ebp + 4]
lea esi, [esp + 0x14]
call fcn.0041c950
test al, al
jne 0x51de00
mov edx, dword [ebp]
mov eax, dword [edx + 0x82c]
add dword [eax + 0x350], 0xffffffff
mov eax, dword [ebp]
cmp byte [eax + 0x8c5], bl
jne 0x51de8d
fldz
mov ecx, dword [0x6a9f00]
mov esi, dword [eax + 0x784]
fst dword [esp + 0x14]
fcomp dword [ecx + 0x1a4]
fnstsw ax
test ah, 0x44
jnp 0x51de79
fld dword [ecx + 0x1a4]
push ecx
fstp dword [esp]
call fcn.005af410
fstp dword [esp + 0x18]
add esp, 4
fld dword [esp + 0x14]
push ecx
mov eax, 8
fstp dword [esp]
mov ecx, esi
call fcn.00515020
push ebp
mov eax, edi
call fcn.0051d5c0
mov esi, 0x10
cmp dword [esp + 0x68], esi
jb 0x51dead
mov eax, dword [esp + 0x54]
push eax
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x4c], esi
mov edi, 0xf
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x51ded1
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x51def3
mov edx, dword [esp + 0x74]
push edx
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x51df1e
mov eax, dword [esp + 0x90]
push eax
call fcn.0061c19a
add esp, 4
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa4
ret 8